summaryrefslogtreecommitdiff
path: root/ar/.local/bin/ecrypt
diff options
context:
space:
mode:
Diffstat (limited to 'ar/.local/bin/ecrypt')
-rwxr-xr-xar/.local/bin/ecrypt6
1 files changed, 5 insertions, 1 deletions
diff --git a/ar/.local/bin/ecrypt b/ar/.local/bin/ecrypt
index ace0eb7..67b705d 100755
--- a/ar/.local/bin/ecrypt
+++ b/ar/.local/bin/ecrypt
@@ -7,7 +7,11 @@ mount_encrypted() {
attempt_mount() {
if mount | grep -q " $2 "; then
- sudo umount "$2" && notify-send "🔒 Locked: $3" || notify-send "❗ Unable to lock" "Mounted: $3"
+ if sudo umount "$2"; then
+ notify-send "🔒 Locked: $3"
+ else
+ notify-send "❗ Unable to lock" "Mounted: $3"
+ fi
else
ECRYPTFS_SIG=$(pass show encryption/ecryptfs-sig-"$4")
FNEK_SIG=$ECRYPTFS_SIG