X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e194da857835c3bd9dcbdc9faf39189b6ec514d3..c26ab6ee15974c1133a6d08c459b51199185f25f:/scripts/save-locale-pack

diff --git a/scripts/save-locale-pack b/scripts/save-locale-pack
index 87a2ed3a4..3e1aa524f 100755
--- a/scripts/save-locale-pack
+++ b/scripts/save-locale-pack
@@ -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