aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <david.runge@frqrec.com>2013-12-16 11:25:44 +0100
committerDavid Runge <david.runge@frqrec.com>2013-12-16 11:25:44 +0100
commitb7c7d4e9b28d71132e63c2bc283160120ef48bb2 (patch)
tree528398fe8d02fc05b51e8e27c92a4e6c8561127f
parent809bc5ee38aaedb89292d4e2892dc8624cb47131 (diff)
downloaddotfiles-b7c7d4e9b28d71132e63c2bc283160120ef48bb2.tar.gz
dotfiles-b7c7d4e9b28d71132e63c2bc283160120ef48bb2.tar.bz2
dotfiles-b7c7d4e9b28d71132e63c2bc283160120ef48bb2.tar.xz
dotfiles-b7c7d4e9b28d71132e63c2bc283160120ef48bb2.zip
Added more output and device checks in cryptsetup functions
-rw-r--r--.zsh.after/functions.zsh6
1 files changed, 5 insertions, 1 deletions
diff --git a/.zsh.after/functions.zsh b/.zsh.after/functions.zsh
index 9839658..cf0f86a 100644
--- a/.zsh.after/functions.zsh
+++ b/.zsh.after/functions.zsh
@@ -255,7 +255,11 @@ function lopen () {
;;
esac
esac
- sudo mount /dev/mapper/$1 /mnt/$1
+ if [[ -e "/dev/mapper/$1" ]]; then
+ sudo mount /dev/mapper/$1 /mnt/$1
+ else
+ echo "Device is not available."
+ fi
}
function lclose () {