From 0da1c5eacf5b485ca890afd67279bca38aad78bb Mon Sep 17 00:00:00 2001 From: hayao Date: Fri, 9 Apr 2021 21:01:34 +0900 Subject: [PATCH] [fix] : Fixed argument parsing --- tools/fullbuild.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/fullbuild.sh b/tools/fullbuild.sh index 92211750..bac511aa 100755 --- a/tools/fullbuild.sh +++ b/tools/fullbuild.sh @@ -141,14 +141,14 @@ _help() { share_options+=("--noconfirm") # Parse options -ARGUMENT="${@}" +ARGUMENT=("${@}") OPTS="a:dghr:sctm:l:w:" OPTL="help,remove-cache" -if ! OPT=$(getopt -o ${OPTS} -l ${OPTL} -- ${ARGUMENT}); then +if ! OPT=$(getopt -o ${OPTS} -l ${OPTL} -- "${ARGUMENT[@]}"); then exit 1 fi eval set -- "${OPT}" -unset OPT OPTS OPTL +unset OPT OPTS OPTL ARGUMENT while true; do case ${1} in -- 2.11.0