From e49667fd1afd48e633da900d0b30fdda49285b78 Mon Sep 17 00:00:00 2001 From: hayao Date: Thu, 11 Mar 2021 21:49:00 +0900 Subject: [PATCH] [fix] : Handle whitespace properly --- tools/alteriso-info.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/alteriso-info.sh b/tools/alteriso-info.sh index 5126786f..594ed549 100755 --- a/tools/alteriso-info.sh +++ b/tools/alteriso-info.sh @@ -24,7 +24,7 @@ _help() { ARGUMENT="${@}" OPTS="a:b:c:d:k:o:p:u:v:h" OPTL="arch:,boot-splash:,channel:,developer:,kernel:,os-name:,password:,username:,version:,help" -if ! OPT=$(getopt -o ${OPTS} -l ${OPTL} -- ${ARGUMENT}); then +if ! OPT="$(getopt -o "${OPTS}" -l "${OPTL}" -- "${@}")"; then exit 1 fi @@ -32,7 +32,7 @@ eval set -- "${OPT}" unset OPT OPTS OPTL while true; do - case ${1} in + case "${1}" in -a | --arch) arch="${2}" shift 2 -- 2.11.0