plugins/nmount | 5 +++++ diff --git a/plugins/nmount b/plugins/nmount index a0782e450641386d672a01986431ad8f0d7a7c55..e08966a0977ffc00da47a2dd4f697fc4dafaa5e1 100755 --- a/plugins/nmount +++ b/plugins/nmount @@ -10,6 +10,11 @@ lsblk echo echo -n "device (e.g. sdc2): " read dev + +if [ -z "$dev" ]; then + exit 1 +fi + echo if grep -qs "$dev " /proc/mounts; then