diff options
| author | 2019-04-21 12:14:03 +0530 | |
|---|---|---|
| committer | 2019-04-21 12:14:03 +0530 | |
| commit | bd2831498c812df98ee481bfa7e00bf4dc8c52ed (patch) | |
| tree | 43f56c91fe4da98986005267a0897f6c6b418d73 | |
| parent | 78de6b575286e1bf33744abc01f93a5ca8563d78 (diff) | |
| download | nnn-bd2831498c812df98ee481bfa7e00bf4dc8c52ed.tar.gz | |
Fix nmount on blank entry
| -rwxr-xr-x | plugins/nmount | 5 |
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 |