From 47deadb7c169e70794262d2cb6de5f51d010d386 Mon Sep 17 00:00:00 2001 From: magic_rb Date: Mon, 13 Apr 2026 14:23:41 +0200 Subject: [PATCH] Fix failing ShellCheck for LUKS partitions Signed-off-by: magic_rb --- lib/types/luks.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/types/luks.nix b/lib/types/luks.nix index 9404711..b9baa85 100644 --- a/lib/types/luks.nix +++ b/lib/types/luks.nix @@ -137,7 +137,7 @@ in var=$2 echo -n "$prompt" - IFS= read -r -s "$var" + IFS= read -r -s "''${var?}" echo } @@ -147,6 +147,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