This commit is contained in:
Marc Beninca 2024-11-18 22:20:47 +01:00
parent d28e44097c
commit dce638fcbd
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 2 additions and 4 deletions

3
cs
View file

@ -53,8 +53,7 @@ case "${action}" in
;;
"${ACTION_CLOSE}")
echo "${container_map_file} ← ${container_mount_directory}"
umount "${container_map_file}"
if [ ${?} -eq 0 ]; then
if umount "${container_map_file}"; then
rmdir --ignore-fail-on-non-empty "${container_mount_directory}"
echo "${container_file} ← ${container_map_file}"
cryptsetup luksClose "${container_name}"

3
cs.old
View file

@ -53,8 +53,7 @@ case "${action}" in
;;
"${ACTION_CLOSE}")
echo "${container_map_file} ← ${container_mount_directory}"
umount "${container_map_file}"
if [ ${?} -eq 0 ]; then
if umount "${container_map_file}"; then
rmdir --ignore-fail-on-non-empty "${container_mount_directory}"
echo "${container_file} ← ${container_map_file}"
cryptsetup luksClose "${container_name}"