From a1746a9fd28a4ce044e3a3f9aeb76799dec6007c Mon Sep 17 00:00:00 2001 From: Fabrixxm Date: Wed, 27 Feb 2013 09:42:20 -0500 Subject: [PATCH] run_xgettext: check for dir before run xgettext --- util/run_xgettext.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/util/run_xgettext.sh b/util/run_xgettext.sh index b77913bc73..b39b758201 100755 --- a/util/run_xgettext.sh +++ b/util/run_xgettext.sh @@ -45,7 +45,13 @@ OPTS= KEYWORDS="-k -kt -ktt:1,2" echo "extract strings to $OUTFILE.." -find "$FINDSTARTDIR" $FINDOPTS -name "*.php" -type f | xargs xgettext $KEYWORDS $OPTS -o "$OUTFILE" --from-code=UTF-8 +for f in $(find "$FINDSTARTDIR" $FINDOPTS -name "*.php" -type f) +do + if [ ! -d "$f" ] + then + xgettext $KEYWORDS $OPTS -o "$OUTFILE" --from-code=UTF-8 "$f" + fi +done echo "setup base info.." if [ $ADDONMODE ] -- 2.39.5