From f7825e07c9674f994d7c0d571448c2927721fdaf Mon Sep 17 00:00:00 2001 From: Bo Yang Date: Tue, 2 Dec 2008 08:35:26 +0800 Subject: [PATCH] Fix script installmo.sh when no .po file exists --- source/script/installmo.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/script/installmo.sh b/source/script/installmo.sh index a1f9c58e275..9c4ab1eefe6 100644 --- a/source/script/installmo.sh +++ b/source/script/installmo.sh @@ -24,6 +24,10 @@ for dir in $SRCDIR/locale/*; do for f in $SRCDIR/locale/$MODULE/*.po; do BASE=`basename $f` LANGUAGE=`echo $BASE | sed 's/\.po//g'` + if test "$LANGUAGE" = '*'; then + echo "No .po file exists!" + exit 0 + fi FNAME="$DESTDIR/$LOCALEDIR/$LANGUAGE/LC_MESSAGES/$MODULE.mo" if test ! -d "$DESTDIR/$LOCALEDIR/$LANGUAGE/LC_MESSAGES/"; then mkdir -p "$DESTDIR/$LOCALEDIR/$LANGUAGE/LC_MESSAGES/" -- 2.11.4.GIT