From b878481c4efbef837cc6e5061d3e35505694eaf9 Mon Sep 17 00:00:00 2001 From: Philipp Date: Mon, 4 Oct 2021 11:58:07 +0200 Subject: [PATCH] Remove messages.po if it does exist :-) --- bin/run_xgettext.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/run_xgettext.sh b/bin/run_xgettext.sh index 427325e02..325452468 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)