aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/nmount
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-04-21 12:14:03 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-04-21 12:14:03 +0530
commitbd2831498c812df98ee481bfa7e00bf4dc8c52ed (patch)
tree43f56c91fe4da98986005267a0897f6c6b418d73 /plugins/nmount
parent78de6b575286e1bf33744abc01f93a5ca8563d78 (diff)
downloadnnn-bd2831498c812df98ee481bfa7e00bf4dc8c52ed.tar.gz
Fix nmount on blank entry
Diffstat (limited to 'plugins/nmount')
-rwxr-xr-xplugins/nmount5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/nmount b/plugins/nmount
index a0782e4..e08966a 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