summaryrefslogtreecommitdiffstats
path: root/.scripts
diff options
context:
space:
mode:
Diffstat (limited to '.scripts')
-rwxr-xr-x.scripts/i3cmds/dmenuumount11
1 files 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