From cbcd5e0c622a87647c7899178d4249b1680c08eb Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 24 Nov 2018 09:05:57 -0500 Subject: [PATCH] umount android fix --- .scripts/i3cmds/dmenuumount | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.scripts/i3cmds/dmenuumount b/.scripts/i3cmds/dmenuumount index c169326..a267010 100755 --- a/.scripts/i3cmds/dmenuumount +++ b/.scripts/i3cmds/dmenuumount @@ -30,7 +30,12 @@ if ! grep simple-mtpfs /etc/mtab; then echo "Unmountable USB drive detected." unmountusb else - [ -z "$drives" ] && echo "Unmountable Android device detected." && unmountandroid - echo "Unmountable USB drive(s) and Android device(s) detected." - asktype + if [ -z "$drives" ] + then + echo "Unmountable Android device detected." + unmountandroid + else + echo "Unmountable USB drive(s) and Android device(s) detected." + asktype + fi fi