umount android fix

This commit is contained in:
Luke Smith 2018-11-24 09:05:57 -05:00
parent 21b4f8c613
commit cbcd5e0c62

View file

@ -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