forgotten flag
[wolnelektury.git] / scripts / save-locale-pack
index 87a2ed3..3e1aa52 100755 (executable)
@@ -34,7 +34,11 @@ else
     done
 fi
 
+cp -v ${ROOT}/apps/infopages/fixtures/infopages.json "$LOCALIZED/infopages.json"
 ${0}-json.py "$LOCALIZED/infopages.json" $LNG
+if [ ! "$?" = 0 ]; then
+    exit 1;
+fi
 cp -v "$LOCALIZED/infopages.json" ${ROOT}/apps/infopages/fixtures/infopages.json
 cp -v "$LOCALIZED/locale.js.txt" ${ROOT}/wolnelektury/static/js/locale.js