From 59968fcefa57648559ce8c5501f759ccca6ca027 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Sat, 7 Oct 2023 16:03:27 -0400 Subject: [PATCH] return without subshell, otherwise no env --- guix-strap/guix-crypt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guix-strap/guix-crypt b/guix-strap/guix-crypt index ec099ff..f9925f3 100755 --- a/guix-strap/guix-crypt +++ b/guix-strap/guix-crypt @@ -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"