Fix nmount on blank entry

This commit is contained in:
Arun Prakash Jana 2019-04-21 12:14:03 +05:30
parent 78de6b5752
commit bd2831498c

View file

@ -10,6 +10,11 @@ lsblk
echo echo
echo -n "device (e.g. sdc2): " echo -n "device (e.g. sdc2): "
read dev read dev
if [ -z "$dev" ]; then
exit 1
fi
echo echo
if grep -qs "$dev " /proc/mounts; then if grep -qs "$dev " /proc/mounts; then