Blind test

This commit is contained in:
Phillip 2024-09-07 22:33:17 +01:00
parent 0aa69778fb
commit 9ce0294d14

View File

@ -25,14 +25,7 @@ read -p "Do you wish to set a home partition? " yesno
case $yesno in
[yesYesYy]* )
read -p 'Please enter the drive value for the home partition: ' homepar
;;
[noNoNn]* )
echo "A home partition will not be used in this installation"
;;
* ) echo "Please answer yes (Yes, y, Y) or no (No, n, N)";;
esac
# Ask if a home partition should be wiped
if test -z "$homepar"; then
# Ask if a home partition should be wiped
read -p 'Do you wish to wipe the home partition? ' wipeyesno
case $wipeyesno in
[yesYesYy]* )
@ -43,7 +36,12 @@ if test -z "$homepar"; then
;;
* ) echo "Please answer yes (Yes, y, Y) or no (No, n, N)";;
esac
fi
;;
[noNoNn]* )
echo "A home partition will not be used in this installation"
;;
* ) echo "Please answer yes (Yes, y, Y) or no (No, n, N)";;
esac
# Get user credentials
read -p "Please enter a username " username
read -rsp "Please enter a password " password