From 31cc977a6487ef29b969eb4b2af5e1e8cc5f3d48 Mon Sep 17 00:00:00 2001 From: proledatarian Date: Mon, 14 Feb 2022 14:40:42 +0000 Subject: [PATCH] Update install.sh --- install.sh | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 3f4e5b1..5c7c85f 100644 --- a/install.sh +++ b/install.sh @@ -43,6 +43,9 @@ declare -a dsks select dev in ${dsks[*]} do +break +done + # Separate values by spaces. IFS=' ' @@ -73,6 +76,9 @@ else echo "You have entered different passwords. Try again.." fi +break +done + # Setting hostname. echo "Before installing the system, please enter a hostname:" echo @@ -94,7 +100,9 @@ else echo echo "You have entered different passwords. Try again.." fi -echo + +break +done # Setting username echo "And please enter a username:" @@ -116,7 +124,9 @@ else echo echo "You have entered different passwords. Try again.." fi -echo + +break +done echo "System is getting installed.." echo @@ -149,10 +159,6 @@ echo "This is your new partition table:" lsblk | grep "$dev" echo -# Exit. -break -done - # Get new variable. main=$(dev)2