This commit is contained in:
Marc Beninca 2025-03-30 22:31:42 +02:00
parent 715708dc3d
commit a7219cf7fa
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -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
;;