Skip to content

Commit 67bd0dc

Browse files
committed
[fix] : Fixxed re-run
1 parent 18b4ba2 commit 67bd0dc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,12 +1031,16 @@ make_iso() {
10311031

10321032

10331033
# Parse options
1034+
ARGUMENT=("${DEFAULT_ARGUMENT[@]}" "${@}")
10341035
OPTS=("a:" "b" "c:" "d" "e" "g:" "h" "j" "k:" "l:" "o:" "p:" "r" "t:" "u:" "w:" "x")
10351036
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")
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
10381040
fi
10391041

1042+
#eval set -- "${OPT[@]}"4
1043+
#msg_debug "Argument: ${OPT[@]}"
10401044
eval set -- "${OPT}"
10411045
msg_debug "Argument: ${OPT}"
10421046
unset OPT OPTS OPTL DEFAULT_ARGUMENT

0 commit comments

Comments
 (0)