From 24043679a2036e7c27b7a456c8e8668feb2d86d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Wed, 12 Aug 2009 11:20:42 +0300 Subject: [PATCH] Add quotes to prevent shell expansion in init-po-files script. --- init-po-files | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/init-po-files b/init-po-files index 223d5ea..756943a 100755 --- a/init-po-files +++ b/init-po-files @@ -14,8 +14,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -source "`dirname $0`/ths-variables" -source "$THS" +source `dirname $0`/ths-variables +source $THS if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then echo "Usage `basename $0` " @@ -23,26 +23,26 @@ if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then fi if [ $# -eq 2 ]; then - messages=$1 - pot=$2 + messages="$1" + pot="$2" else - messages=$potrunk - pot=$pottrunk + messages="$potrunk" + pot="$pottrunk" fi cd $pot for dir in `ls`; do cd $dir - podir=../../$messages/$dir - if [ ! -e $podir ]; then - mkdir $podir - svn add $podir + podir="../../$messages/$dir" + if [ ! -e "$podir" ]; then + mkdir "$podir" + svn add "$podir" fi for file in `ls`; do po=`echo $file | sed s/.pot/.po/` - if [ ! -e $podir/$po ]; then + if [ ! -e "$podir/$po" ]; then echo -e $RED"$dir/$po"$ENDCOLOR - msginit -i $file -o $podir/$po --no-translator - svn add $podir/$po + msginit -i "$file" -o "$podir/$po" --no-translator + svn add "$podir/$po" fi done cd ..