Spell check & formatting
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# Fetching Vars #
|
||||
##-----------------##
|
||||
|
||||
if [ ! -f "/etc/ICTM/selopts.list" ] || [ ! -f "/etc/ICTM/mainvar.list" ] ; then echo 'This system is not yet setup, pleas run the main installer first' && exit ; fi
|
||||
if [ ! -f "/etc/ICTM/selopts.list" ] || [ ! -f "/etc/ICTM/mainvar.list" ] ; then echo 'This system is not yet setup, please run the main installer first' && exit ; fi
|
||||
|
||||
|
||||
##-----------------##
|
||||
@@ -91,28 +91,28 @@ fi
|
||||
##--------##
|
||||
|
||||
if [ $IMODE = n ]; then
|
||||
PasswordQuest
|
||||
option=$(whiptail --title "Title" --checklist "Features" 11 110 5 "${options[@]}" 3>&1 1>&2 2>&3)
|
||||
[[ "$?" = 1 ]] && msg " Quiting installer" 8 78 && exit;
|
||||
PasswordQuest
|
||||
option=$(whiptail --title "Title" --checklist "Features" 11 110 5 "${options[@]}" 3>&1 1>&2 2>&3)
|
||||
[[ "$?" = 1 ]] && msg " Quiting installer" 8 78 && exit;
|
||||
fi
|
||||
|
||||
if [ $IMODE = l ]; then
|
||||
echo "" >/dev/null
|
||||
LegacyPasswordQuest
|
||||
choice () {
|
||||
local choice=$1
|
||||
echo "" >/dev/null
|
||||
LegacyPasswordQuest
|
||||
choice () {
|
||||
local choice=$1
|
||||
if [[ ${opts[choice]} ]] # toggle
|
||||
then
|
||||
opts[choice]=
|
||||
topt=${opt//+/}
|
||||
topt="${topt%"${topt##*[![:space:]]}"}"
|
||||
topt=\"$topt\"
|
||||
option=${option//"$topt"/}
|
||||
unset $topt
|
||||
then
|
||||
opts[choice]=
|
||||
topt=${opt//+/}
|
||||
topt="${topt%"${topt##*[![:space:]]}"}"
|
||||
topt=\"$topt\"
|
||||
option=${option//"$topt"/}
|
||||
unset $topt
|
||||
else
|
||||
opts[choice]=+
|
||||
opt="${opt%"${opt##*[![:space:]]}"}"
|
||||
option+="\"$opt\" "
|
||||
opts[choice]=+
|
||||
opt="${opt%"${opt##*[![:space:]]}"}"
|
||||
option+="\"$opt\" "
|
||||
fi
|
||||
}
|
||||
echo "The first selection will always return a invalid option, please enter the first option twice"
|
||||
|
||||
Reference in New Issue
Block a user