zsh:safe-remove(): Don't fail if already unmounted
This commit is contained in:
@@ -262,7 +262,7 @@ safe-remove() {
|
||||
[[ -e "$1" ]] || return 1
|
||||
|
||||
sync
|
||||
if ! udisksctl unmount -b "$1"; then
|
||||
if mount | grep -q "$1" && ! udisksctl unmount -b "$1"; then
|
||||
lsof "$1"
|
||||
return 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user