summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-10-07 15:54:03 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-10-07 15:54:03 -0400
commitf5897a6ef080b6d74d9b0baf940d50dc06d6d59f (patch)
tree54d3bf14f386e86aeeb45183fa1a02e4335d3368
parentfix crypt script (matching and passwd chk) (diff)
downloaddotfiles-guix-f5897a6ef080b6d74d9b0baf940d50dc06d6d59f.tar.gz
dotfiles-guix-f5897a6ef080b6d74d9b0baf940d50dc06d6d59f.tar.bz2
dotfiles-guix-f5897a6ef080b6d74d9b0baf940d50dc06d6d59f.zip
fix formatting, add subshell so no quit
-rwxr-xr-xguix-strap/guix-crypt4
1 files changed, 3 insertions, 1 deletions
diff --git a/guix-strap/guix-crypt b/guix-strap/guix-crypt
index 24f6492..ec099ff 100755
--- a/guix-strap/guix-crypt
+++ b/guix-strap/guix-crypt
@@ -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"