Skip to content

Commit

Permalink
extract_messages.sh: Add "--" to cd & dirname to support name startin…
Browse files Browse the repository at this point in the history
…g with "-"
  • Loading branch information
brenard committed Jan 26, 2023
1 parent e075479 commit 2d2c937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Locales/extract_messages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

which xgettext &>/dev/null || { echo "xgettext not found, please install it"; exit 1; }

cd "$( dirname "$0" )/../"
cd -- "$( dirname -- "$0" )/../"

find -name '*.php' | xgettext \
--from-code utf-8 \
Expand Down

0 comments on commit 2d2c937

Please sign in to comment.