mirror of
https://github.com/nix-community/disko.git
synced 2026-12-03 06:23:28 +01:00
Fix failing ShellCheck for LUKS partitions
Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
1 file changed
+2
-1
+2
-1
@@ -137,7 +137,7 @@ in
|
|||||||
var=$2
|
var=$2
|
||||||
|
|
||||||
echo -n "$prompt"
|
echo -n "$prompt"
|
||||||
IFS= read -r -s "$var"
|
IFS= read -r -s "''${var?}"
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -147,6 +147,7 @@ in
|
|||||||
promptSecret "Enter password for ${config.device}: " password
|
promptSecret "Enter password for ${config.device}: " password
|
||||||
promptSecret "Enter password for ${config.device} again to be safe: " password_check
|
promptSecret "Enter password for ${config.device} again to be safe: " password_check
|
||||||
export password
|
export password
|
||||||
|
# shellcheck disable=SC2154
|
||||||
if [ "$password" != "$password_check" ]; then
|
if [ "$password" != "$password_check" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user