mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
1 file changed
+2
-1
+2
-1
@@ -191,7 +191,7 @@ in
|
||||
var=$2
|
||||
|
||||
echo -n "$prompt"
|
||||
IFS= read -r -s "$var"
|
||||
IFS= read -r -s "''${var?}"
|
||||
echo
|
||||
}
|
||||
|
||||
@@ -201,6 +201,7 @@ in
|
||||
promptSecret "Enter password for ${config.device}: " password
|
||||
promptSecret "Enter password for ${config.device} again to be safe: " password_check
|
||||
export password
|
||||
# shellcheck disable=SC2154
|
||||
if [ "$password" != "$password_check" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user