return without subshell, otherwise no env

This commit is contained in:
Freya Murphy 2023-10-07 16:03:27 -04:00
parent f5897a6ef0
commit 59968fcefa
No known key found for this signature in database
GPG key ID: 988032A5638EE799

View file

@ -27,14 +27,14 @@ get_password() {
read -s -p "Confirm password: " PASSWORD_CONFIRM
printf "\n"
if [ "$PASSWORD" == "$PASSWORD_CONFIRM" ]; then
exit 0
return
else
ERROR "Passwords do not match"
get_password
fi
}
(get_password);
get_password
EVENT "Setting up luks"