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