Browse Source

Fix nmount on blank entry

master
Arun Prakash Jana 5 years ago
parent
commit
bd2831498c
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      plugins/nmount

+ 5
- 0
plugins/nmount 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


Loading…
Cancel
Save