From a7219cf7faa4f32ae5aff9459854d21e93224d1c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 30 Mar 2025 22:31:42 +0200 Subject: [PATCH] cs/fix --- sh/cryptsetup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sh/cryptsetup.sh b/sh/cryptsetup.sh index a4792e6..fd20a64 100644 --- a/sh/cryptsetup.sh +++ b/sh/cryptsetup.sh @@ -99,7 +99,7 @@ rwx_crypt() { rwx_log_error 6 "Closing failure: ${crypt_arg}" fi # load device - if ! device="$(cat "${RWX_CRYPT_ROOT}/${crypt_arg}")"; then + if ! device="$(cat "${RWX_CRYPT_VAR}/${crypt_arg}")"; then rwx_log_error 7 "Loading failure: ${crypt_arg}" fi # disconnect device @@ -107,7 +107,7 @@ rwx_crypt() { rwx_log_error 8 "Disconnection failure: ${device}" fi # remove record - if ! rm "${RWX_CRYPT_ROOT}/${crypt_arg}"; then + if ! rm "${RWX_CRYPT_VAR}/${crypt_arg}"; then rwx_log_error 9 "Removal failure: ${crypt_arg}" fi ;;