From bd2831498c812df98ee481bfa7e00bf4dc8c52ed Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 21 Apr 2019 12:14:03 +0530 Subject: [PATCH] Fix nmount on blank entry --- plugins/nmount | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/nmount b/plugins/nmount index a0782e45..e08966a0 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