File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1031,12 +1031,16 @@ make_iso() {
10311031
10321032
10331033# Parse options
1034+ ARGUMENT=(" ${DEFAULT_ARGUMENT[@]} " " ${@ } " )
10341035OPTS=(" a:" " b" " c:" " d" " e" " g:" " h" " j" " k:" " l:" " o:" " p:" " r" " t:" " u:" " w:" " x" )
10351036OPTL=(" 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" )
1036- if ! OPT=$( getopt -o " $( printf " %s," " ${OPTS[@]} " ) " -l " $( printf " %s," " ${OPTL[@]} " ) " -- " ${@ } " " ${DEFAULT_ARGUMENT[@]} " ) ; then
1037+ if ! OPT=$( getopt -o " $( printf " %s," " ${OPTS[@]} " ) " -l " $( printf " %s," " ${OPTL[@]} " ) " -- " ${ARGUMENT[@]} " ) ; then
1038+ # if ! readarray OPT < <(getopt -o "$(printf "%s," "${OPTS[@]}")" -l "$(printf "%s," "${OPTL[@]}")" -- "${ARGUMENT[@]}"); then
10371039 exit 1
10381040fi
10391041
1042+ # eval set -- "${OPT[@]}"4
1043+ # msg_debug "Argument: ${OPT[@]}"
10401044eval set -- " ${OPT} "
10411045msg_debug " Argument: ${OPT} "
10421046unset OPT OPTS OPTL DEFAULT_ARGUMENT
You can’t perform that action at this time.
0 commit comments