diff options
-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 |