Skip to content

Commit 4073ff2

Browse files
committed
types.luks: fix password check
1 parent f64ab15 commit 4073ff2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/types/luks.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ in
147147
promptSecret "Enter password for ${config.device}: " password
148148
promptSecret "Enter password for ${config.device} again to be safe: " password_check
149149
export password
150-
[ "$password" = "$password_check" ]
150+
if [ "$password" != "$password_check" ]; then
151+
exit 1
152+
fi
151153
set -x
152154
else
153155
export password=disko

0 commit comments

Comments
 (0)