aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/nmount
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-06-10 19:47:00 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-06-10 19:47:00 +0530
commit23f84df1d8722591ea93aa1dd84f313cebbf3548 (patch)
tree5a1ebc69f419282cde6b2fbc0ad62b6adbda8eee /plugins/nmount
parent80c35e85bde4f114d22dc8ded2583ce52a402a79 (diff)
downloadnnn-23f84df1d8722591ea93aa1dd84f313cebbf3548.tar.gz
Supprt exit on 'q'
Diffstat (limited to 'plugins/nmount')
-rwxr-xr-xplugins/nmount2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/nmount b/plugins/nmount
index dc3e577..9fb4e90 100755
--- a/plugins/nmount
+++ b/plugins/nmount
@@ -29,6 +29,8 @@ while ! [ -z "$dev" ]
do
if [ "$dev" = "l" ]; then
lsblk
+ elif [ "$dev" = "q" ]; then
+ exit
else
if grep -qs "$dev " /proc/mounts; then
sync