vim:crypt-umount(): Continue if already unmounted
This commit is contained in:
@@ -265,7 +265,10 @@ crypt-umount() {
|
|||||||
[[ -e "$1" ]] || return 1
|
[[ -e "$1" ]] || return 1
|
||||||
|
|
||||||
sync
|
sync
|
||||||
if ! udisksctl unmount -b /dev/mapper/crypt_"${1##*/}"; then
|
if
|
||||||
|
mount | grep -q /dev/mapper/crypt_"${1##*/}" \
|
||||||
|
&& ! udisksctl unmount -b /dev/mapper/crypt_"${1##*/}"
|
||||||
|
then
|
||||||
lsof /dev/mapper/crypt_"${1##*/}"
|
lsof /dev/mapper/crypt_"${1##*/}"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user