diff options
Diffstat (limited to 'element-desktop')
-rw-r--r-- | element-desktop/bash-aliases | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/element-desktop/bash-aliases b/element-desktop/bash-aliases index 5689df2..fa8afea 100644 --- a/element-desktop/bash-aliases +++ b/element-desktop/bash-aliases @@ -14,6 +14,7 @@ umount-element () { asroot env XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR}" ELEMENT_DIR=~/.var/opt/element sh -c ' umount "${ELEMENT_DIR}/ElementCrypt.d" cryptsetup close ElementCrypt - losetup --detach "$(cat -- "${XDG_RUNTIME_DIR}/ElementCrypt")" + losetup -d "$(cat -- "${XDG_RUNTIME_DIR}/ElementCrypt")" + rm -f -- "${XDG_RUNTIME_DIR}/ElementCrypt" ' } |