From b7c7d4e9b28d71132e63c2bc283160120ef48bb2 Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 16 Dec 2013 11:25:44 +0100 Subject: Added more output and device checks in cryptsetup functions --- .zsh.after/functions.zsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 () { -- cgit v1.2.3-70-g09d2