aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--element-desktop/bash-aliases3
-rw-r--r--signal-desktop/bash-aliases3
-rw-r--r--wire-desktop/bash-aliases3
3 files changed, 6 insertions, 3 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"
'
}
diff --git a/signal-desktop/bash-aliases b/signal-desktop/bash-aliases
index 0404b2c..a2669ab 100644
--- a/signal-desktop/bash-aliases
+++ b/signal-desktop/bash-aliases
@@ -14,6 +14,7 @@ umount-signal () {
asroot env XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR}" SIGNAL_DIR=~/.var/opt/signal sh -c '
umount "${SIGNAL_DIR}/SignalCrypt.d"
cryptsetup close SignalCrypt
- losetup --detach "$(cat -- "${XDG_RUNTIME_DIR}/SignalCrypt")"
+ losetup -d "$(cat -- "${XDG_RUNTIME_DIR}/SignalCrypt")"
+ rm -f -- "${XDG_RUNTIME_DIR}/SignalCrypt"
'
}
diff --git a/wire-desktop/bash-aliases b/wire-desktop/bash-aliases
index 09f4733..0fe1b9e 100644
--- a/wire-desktop/bash-aliases
+++ b/wire-desktop/bash-aliases
@@ -14,6 +14,7 @@ umount-wire () {
asroot env XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR}" WIRE_DIR=~/.var/opt/wire sh -c '
umount "${WIRE_DIR}/WireCrypt.d"
cryptsetup close WireCrypt
- losetup --detach "$(cat -- "${XDG_RUNTIME_DIR}/WireCrypt")"
+ losetup -d "$(cat -- "${XDG_RUNTIME_DIR}/WireCrypt")"
+ rm -f -- "${XDG_RUNTIME_DIR}/WireCrypt"
'
}