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