diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-03-26 00:36:52 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-03-26 00:36:52 +0900 |
| commit | 1d2a657c300fdddfe47dda9eea4b896cbf44872b (patch) | |
| tree | 28b9cf509cba8f9dd35f0a6d226111811efc196f /ar/.local/bin/ecrypt | |
| parent | d9151467e4a85271333bf3e688797fba79ed2d93 (diff) | |
modified zsh/scripts.zsh, modified bin/ecrypt, modified statusbar/sb-ecrypt, created statusbar/sb-ticker
Diffstat (limited to 'ar/.local/bin/ecrypt')
| -rwxr-xr-x | ar/.local/bin/ecrypt | 6 |
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 |
