From 0aa69778fba7252e3015c6f3106375decfec9eef Mon Sep 17 00:00:00 2001 From: Phillip Date: Sat, 7 Sep 2024 22:30:21 +0100 Subject: [PATCH] Correct if statement --- scripts/0-install.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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