diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2018-11-24 09:05:57 -0500 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2018-11-24 09:05:57 -0500 |
| commit | cbcd5e0c622a87647c7899178d4249b1680c08eb (patch) | |
| tree | 8477d64d80520e929ce2df43007481e0d5643082 /.scripts/i3cmds | |
| parent | 21b4f8c613c45a2694129f5bba37b2ebc934633b (diff) | |
| download | eibhear-cbcd5e0c622a87647c7899178d4249b1680c08eb.tar.gz eibhear-cbcd5e0c622a87647c7899178d4249b1680c08eb.tar.zst eibhear-cbcd5e0c622a87647c7899178d4249b1680c08eb.zip | |
umount android fix
Diffstat (limited to '.scripts/i3cmds')
| -rwxr-xr-x | .scripts/i3cmds/dmenuumount | 11 |
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 |
