diff --git a/scripts/0-install.sh b/scripts/0-install.sh index e109cc2..80ac0b0 100644 --- a/scripts/0-install.sh +++ b/scripts/0-install.sh @@ -33,16 +33,16 @@ case $yesno in esac # Ask if a home partition should be wiped if test -z "$homepar"; then -read -p 'Do you wish to wipe the home partition? ' wipeyesno -case $wipeyesno in - [yesYesYy]* ) - mkfs.ext4 /dev/$homepar - ;; - [noNoNn]* ) - echo "The home partition will not be wiped" - ;; - * ) echo "Please answer yes (Yes, y, Y) or no (No, n, N)";; -esac + read -p 'Do you wish to wipe the home partition? ' wipeyesno + case $wipeyesno in + [yesYesYy]* ) + mkfs.ext4 /dev/$homepar + ;; + [noNoNn]* ) + echo "The home partition will not be wiped" + ;; + * ) echo "Please answer yes (Yes, y, Y) or no (No, n, N)";; + esac fi # Get user credentials read -p "Please enter a username " username