aboutsummaryrefslogtreecommitdiffstats
path: root/joes-arch-install-UEFI.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xjoes-arch-install-UEFI.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/joes-arch-install-UEFI.sh b/joes-arch-install-UEFI.sh
index 9f23b75..f7a0e2b 100755
--- a/joes-arch-install-UEFI.sh
+++ b/joes-arch-install-UEFI.sh
@@ -18,6 +18,7 @@ intelamdcpu="none"
intelamdgpu="none"
ltskern=true
numregex='^[0-9]+$'
+gogo=false
if [ ! -r /sys/firmware/efi/efivars ]; then
efimode=false
else
@@ -155,7 +156,7 @@ while [[ $answr != y && $answr != Y && $answr != yes && $answr != Yes && $answr
# 2. swap partion size #
# #
#=================================#${END}"
- while [[ $swps == "" ]]; do
+ while [ "$gogo" = false ]; do
echo && echo
echo -e "${BCYAN}\
Please enter your ${BYELLOW}swap partition ${BCYAN}disired size:
@@ -165,11 +166,15 @@ __G"
if [[ $swps == "" ]]; then
echo && echo
echo -e "${BRED}Can't be empty, retrying...${END}"
+ gogo=false
elif ! [[ $swps =~ $numregex ]]; then
echo && echo
echo -e "${BRED}Illegal value, please choose something reasonable. Retrying...${END}"
+ gogo=false
fi
+ gogo=true
done
+ gogo=false
clear
echo -e "${BMAGENTA}\
#========= I. DISK SETUP =========#
@@ -179,7 +184,7 @@ __G"
# 3. root partion size #
# #
#=================================#"
- while [[ $rts == "" ]]; do
+ while [ "$gogo" = false ]; do
echo && echo
echo -e "${BCYAN}\
Please enter your ${BYELLOW}root partition ${BCYAN}disired size:
@@ -189,10 +194,13 @@ __G"
if [[ $rts == "" ]]; then
echo && echo
echo -e "${BRED}Can't be empty, retrying...${END}"
+ gogo=false
elif ! [[ $swps =~ $numregex ]]; then
echo && echo
echo -e "${BRED}Illegal value, please choose something reasonable. Retrying...${END}"
+ gogo=false
fi
+ gogo=true
done
btsze="128M"
rtsze=$rts"G"