Skip to content

Commit 2a36224

Browse files
committed
[fix]: Use $@
1 parent 7301a7f commit 2a36224

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tools/locale.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,13 @@ EOF
122122
}
123123

124124
# Parse options
125-
ARGUMENT="${@}"
126125
OPTS="a:c:hs"
127126
OPTL="arch:,channel:,help,script"
128-
if ! OPT=$(getopt -o ${OPTS} -l ${OPTL} -- ${ARGUMENT}); then
127+
if ! OPT=$(getopt -o ${OPTS} -l ${OPTL} -- "${@}"); then
129128
exit 1
130129
fi
131130
eval set -- "${OPT}"
132-
unset OPT OPTS OPTL
131+
unset OPTS OPTL
133132

134133
while true; do
135134
case ${1} in

0 commit comments

Comments
 (0)