From: hayao Date: Thu, 1 Jul 2021 14:42:38 +0000 (+0900) Subject: [fix] : Fixxed re-run X-Git-Tag: 20210705~12 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=67bd0dcedd05a7beb42dbe94882812d4dc567718;p=alterlinux%2Falterlinux.git [fix] : Fixxed re-run --- diff --git a/build.sh b/build.sh index aac1409d..8b158462 100755 --- a/build.sh +++ b/build.sh @@ -1031,12 +1031,16 @@ make_iso() { # Parse options +ARGUMENT=("${DEFAULT_ARGUMENT[@]}" "${@}") OPTS=("a:" "b" "c:" "d" "e" "g:" "h" "j" "k:" "l:" "o:" "p:" "r" "t:" "u:" "w:" "x") OPTL=("arch:" "boot-splash" "comp-type:" "debug" "cleaning" "cleanup" "gpgkey:" "help" "lang:" "japanese" "kernel:" "out:" "password:" "comp-opts:" "user:" "work:" "bash-debug" "nocolor" "noconfirm" "nodepend" "gitversion" "msgdebug" "noloopmod" "tarball" "noiso" "noaur" "nochkver" "channellist" "config:" "noefi" "nodebug" "nosigcheck" "normwork" "log" "logpath:" "nolog" "nopkgbuild" "pacman-debug" "confirm") -if ! OPT=$(getopt -o "$(printf "%s," "${OPTS[@]}")" -l "$(printf "%s," "${OPTL[@]}")" -- "${@}" "${DEFAULT_ARGUMENT[@]}"); then +if ! OPT=$(getopt -o "$(printf "%s," "${OPTS[@]}")" -l "$(printf "%s," "${OPTL[@]}")" -- "${ARGUMENT[@]}"); then +#if ! readarray OPT < <(getopt -o "$(printf "%s," "${OPTS[@]}")" -l "$(printf "%s," "${OPTL[@]}")" -- "${ARGUMENT[@]}"); then exit 1 fi +#eval set -- "${OPT[@]}"4 +#msg_debug "Argument: ${OPT[@]}" eval set -- "${OPT}" msg_debug "Argument: ${OPT}" unset OPT OPTS OPTL DEFAULT_ARGUMENT