From a6c0303d21f5b0962f2088be8500af74daf3879e Mon Sep 17 00:00:00 2001 From: janw Date: Tue, 19 Jul 2005 12:02:46 +0000 Subject: [PATCH] Added file-existance test. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@970 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gen_locale.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.30.2