File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -509,11 +509,11 @@ prepare_build() {
509509 logging=" ${out_dir} /${iso_filename% .iso} .log"
510510 fi
511511 mkdir -p " $( dirname " ${logging} " ) " ; touch " ${logging} "
512- msg_warn " Re-run sudo ${0} ${DEFAULT_ARGUMENT} ${ ARGUMENT[*]} --nodepend --nolog --nocolor 2>&1 | tee ${logging} "
513- sudo ${0} ${DEFAULT_ARGUMENT} " ${ARGUMENT[@]} " --nolog --nocolor --nodepend 2>&1 | tee " ${logging} "
512+ msg_warn " Re-run sudo ${0} ${ARGUMENT[*]} --nodepend --nolog --nocolor 2>&1 | tee ${logging} "
513+ sudo " ${0} " " ${ARGUMENT[@]} " --nolog --nocolor --nodepend 2>&1 | tee " ${logging} "
514514 exit " ${?} "
515515 else
516- unset DEFAULT_ARGUMENT ARGUMENT
516+ unset ARGUMENT
517517 fi
518518
519519 # Set argument of pkglist.sh
11201120
11211121eval set -- " ${OPT} "
11221122msg_debug " Argument: ${OPT} "
1123- unset OPT OPTS OPTL
1123+ unset OPT OPTS OPTL DEFAULT_ARGUMENT
11241124
11251125while true ; do
11261126 case " ${1} " in
@@ -1307,8 +1307,8 @@ done
13071307# Check root.
13081308if (( ! "${EUID} " == 0 )) ; then
13091309 msg_warn " This script must be run as root." >&2
1310- msg_warn " Re-run 'sudo ${0} ${DEFAULT_ARGUMENT} ${ ARGUMENT[*]} '"
1311- sudo ${0} ${DEFAULT_ARGUMENT} " ${ARGUMENT[@]} "
1310+ msg_warn " Re-run 'sudo ${0} ${ARGUMENT[*]} '"
1311+ sudo " ${0} " " ${ARGUMENT[@]} "
13121312 exit " ${?} "
13131313fi
13141314
You can’t perform that action at this time.
0 commit comments