OSDN Git Service

[fix]: Use $@
authorhayao <hayao@fascode.net>
Thu, 13 May 2021 14:10:32 +0000 (23:10 +0900)
committerhayao <hayao@fascode.net>
Thu, 13 May 2021 14:10:32 +0000 (23:10 +0900)
tools/locale.sh

index e19db37..b91cf1d 100755 (executable)
@@ -122,14 +122,13 @@ EOF
 }
 
 # Parse options
-ARGUMENT="${@}"
 OPTS="a:c:hs"
 OPTL="arch:,channel:,help,script"
-if ! OPT=$(getopt -o ${OPTS} -l ${OPTL} -- ${ARGUMENT}); then
+if ! OPT=$(getopt -o ${OPTS} -l ${OPTL} -- "${@}"); then
     exit 1
 fi
 eval set -- "${OPT}"
-unset OPT OPTS OPTL
+unset OPTS OPTL
 
 while true; do
     case ${1} in