From: Fabrixxm Date: Wed, 27 Feb 2013 14:42:20 +0000 (-0500) Subject: run_xgettext: check for dir before run xgettext X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a1746a9fd28a4ce044e3a3f9aeb76799dec6007c;p=friendica.git run_xgettext: check for dir before run xgettext --- 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 ]