fix formatting, add subshell so no quit

This commit is contained in:
Murphy 2023-10-07 15:54:03 -04:00
parent 1c5c24cd96
commit f5897a6ef0
No known key found for this signature in database
GPG key ID: 988032A5638EE799

View file

@ -23,7 +23,9 @@ fi
get_password() {
read -s -p "LUKS password: " PASSWORD
printf "\n"
read -s -p "Confirm password: " PASSWORD_CONFIRM
printf "\n"
if [ "$PASSWORD" == "$PASSWORD_CONFIRM" ]; then
exit 0
else
@ -32,7 +34,7 @@ get_password() {
fi
}
get_password
(get_password);
EVENT "Setting up luks"