[fix] Parse options at beginning of setup

This commit is contained in:
William Wernert
2020-05-26 15:25:30 -04:00
parent 84e3ce508e
commit 9e1ed6983f
2 changed files with 11 additions and 10 deletions

View File

@@ -40,6 +40,12 @@ export PATH=$PATH:../salt/common/tools/sbin
date -u > $setup_log 2>&1
got_root
if [[ $# -gt 1 ]]; then
set -- "${@:2}"
parse_options "$@" >> $setup_log 2>&1
fi
detect_os
if [ "$OS" == ubuntu ]; then
@@ -241,9 +247,8 @@ fi
whiptail_make_changes
if [[ $# -gt 1 ]]; then
set -- "${@:2}"
parse_options "$@" >> $setup_log 2>&1
if [[ -n "$TURBO" ]]; then
use_turbo_proxy
fi
if [[ "$setup_type" == 'iso' ]]; then