aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2019-11-26 02:09:41 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2019-11-26 02:09:41 +0100
commit479d639bb084e9a89798cba748b3117936aa8154 (patch)
tree2115ed42c895fad5d7f2bdcd44ab775ce7131237
parentSecured numeric inputs (diff)
downloadarch-installer-479d639bb084e9a89798cba748b3117936aa8154.tar.gz
arch-installer-479d639bb084e9a89798cba748b3117936aa8154.tar.bz2
arch-installer-479d639bb084e9a89798cba748b3117936aa8154.tar.xz
arch-installer-479d639bb084e9a89798cba748b3117936aa8154.tar.zst
arch-installer-479d639bb084e9a89798cba748b3117936aa8154.zip
gogo
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"