summaryrefslogtreecommitdiff
path: root/guix-strap/guix-crypt
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-10-07 16:03:27 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-10-07 16:03:27 -0400
commit59968fcefa57648559ce8c5501f759ccca6ca027 (patch)
tree89fa38ef845a62fa10ac6c5a64a5186d4eef8445 /guix-strap/guix-crypt
parentfix formatting, add subshell so no quit (diff)
downloaddotfiles-guix-59968fcefa57648559ce8c5501f759ccca6ca027.tar.gz
dotfiles-guix-59968fcefa57648559ce8c5501f759ccca6ca027.tar.bz2
dotfiles-guix-59968fcefa57648559ce8c5501f759ccca6ca027.zip
return without subshell, otherwise no env
Diffstat (limited to '')
-rwxr-xr-xguix-strap/guix-crypt4
1 files 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"