Skip to content

Commit 2d2c937

Browse files
committed
extract_messages.sh: Add "--" to cd & dirname to support name starting with "-"
1 parent e075479 commit 2d2c937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Locales/extract_messages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

5-
cd "$( dirname "$0" )/../"
5+
cd -- "$( dirname -- "$0" )/../"
66

77
find -name '*.php' | xgettext \
88
--from-code utf-8 \

0 commit comments

Comments
 (0)