From: Philipp Date: Mon, 4 Oct 2021 09:58:07 +0000 (+0200) Subject: Remove messages.po if it does exist :-) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b878481c4efbef837cc6e5061d3e35505694eaf9;p=friendica.git Remove messages.po if it does exist :-) --- diff --git a/bin/run_xgettext.sh b/bin/run_xgettext.sh index 427325e027..3254524684 100755 --- a/bin/run_xgettext.sh +++ b/bin/run_xgettext.sh @@ -69,7 +69,7 @@ esac KEYWORDS="-k -kt -ktt:1,2" echo "Extract strings to $OUTFILE.." -rm "$OUTFILE"; touch "$OUTFILE" +[ -f "$OUTFILE" ] && rm "$OUTFILE"; touch "$OUTFILE" # shellcheck disable=SC2086 # $FINDOPTS is meant to be split find_result=$(find "$FINDSTARTDIR" $FINDOPTS -name "*.php" -type f | LC_ALL=C sort --stable)