From e194da857835c3bd9dcbdc9faf39189b6ec514d3 Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Mon, 5 Mar 2012 11:23:45 +0100 Subject: [PATCH] fix handling of spaces in names --- scripts/save-locale-pack | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/save-locale-pack b/scripts/save-locale-pack index efca71984..87a2ed3a4 100755 --- a/scripts/save-locale-pack +++ b/scripts/save-locale-pack @@ -14,13 +14,13 @@ LNG=$2 load_lang() { L=$1 - for pofile in $LOCALIZED/$L/*.po; do - app=`basename $pofile .po` + for pofile in "$LOCALIZED/$L/"*.po; do + app=`basename "$pofile" .po` echo $app if [ "$app" = "wolnelektury" ]; then - cp -v $pofile $ROOT/wolnelektury/locale/$L/LC_MESSAGES/django.po + cp -v "$pofile" "$ROOT/wolnelektury/locale/$L/LC_MESSAGES/django.po" else - cp -v $pofile $ROOT/apps/$app/locale/$L/LC_MESSAGES/django.po + cp -v "$pofile" "$ROOT/apps/$app/locale/$L/LC_MESSAGES/django.po" fi done } @@ -34,9 +34,9 @@ else done fi -${0}-json.py $LOCALIZED/infopages.json $LNG -cp -v $LOCALIZED/infopages.json ${ROOT}/apps/infopages/fixtures/infopages.json -cp -v $LOCALIZED/locale.js.txt ${ROOT}/wolnelektury/static/js/locale.js +${0}-json.py "$LOCALIZED/infopages.json" $LNG +cp -v "$LOCALIZED/infopages.json" ${ROOT}/apps/infopages/fixtures/infopages.json +cp -v "$LOCALIZED/locale.js.txt" ${ROOT}/wolnelektury/static/js/locale.js for i in $ROOT/apps/*; do cd $i; -- 2.20.1