Android unmount fix

This commit is contained in:
TomJansen 2019-01-15 00:25:46 +01:00
parent 83f154ad17
commit 18378660ca

View file

@ -13,7 +13,7 @@ unmountusb() {
unmountandroid() { \ unmountandroid() { \
chosen=$(awk '/simple-mtpfs/ {print $2}' /etc/mtab | dmenu -i -p "Unmount which device?") chosen=$(awk '/simple-mtpfs/ {print $2}' /etc/mtab | dmenu -i -p "Unmount which device?")
[ -z "$chosen" ] && exit [ -z "$chosen" ] && exit
fusermount -u "$chosen" && pgrep -x dunst && notify-send "$chosen unmounted." sudo -A umount -l "$chosen" && pgrep -x dunst && notify-send "$chosen unmounted."
} }
asktype() { \ asktype() { \