Correct if statement

This commit is contained in:
Phillip 2024-09-07 22:30:21 +01:00
parent e5531e6244
commit 0aa69778fb

View File

@ -33,8 +33,8 @@ 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
read -p 'Do you wish to wipe the home partition? ' wipeyesno
case $wipeyesno in
[yesYesYy]* )
mkfs.ext4 /dev/$homepar
;;
@ -42,7 +42,7 @@ case $wipeyesno in
echo "The home partition will not be wiped"
;;
* ) echo "Please answer yes (Yes, y, Y) or no (No, n, N)";;
esac
esac
fi
# Get user credentials
read -p "Please enter a username " username