From: janw Date: Tue, 19 Jul 2005 12:02:46 +0000 (+0000) Subject: Added file-existance test. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a6c0303d21f5b0962f2088be8500af74daf3879e;p=gosa.git Added file-existance test. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@970 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gen_locale.sh b/gen_locale.sh index 77c733109..e134e2021 100755 --- a/gen_locale.sh +++ b/gen_locale.sh @@ -40,8 +40,7 @@ echo "Merging po files with existing ones:" error=0 for f in locale/??/LC_MESSAGES; do echo -n "* merging $f/messages.po: " - msgmerge $f/messages.po locale/messages.po --output-file=$f/messages.po.new &> /dev/null - + [ -f $f/messages.po ] && msgmerge $f/messages.po locale/messages.po --output-file=$f/messages.po.new &> /dev/null || /bin/true if [ $? -eq 0 ]; then echo "done"; else