From: Arun Prakash Jana Date: Sun, 21 Apr 2019 06:44:03 +0000 (+0530) Subject: Fix nmount on blank entry X-Git-Tag: v2.5~83 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=bd2831498c812df98ee481bfa7e00bf4dc8c52ed;p=nnn.git Fix nmount on blank entry --- 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