mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Supprt exit on 'q'
This commit is contained in:
parent
80c35e85bd
commit
23f84df1d8
|
@ -29,6 +29,8 @@ while ! [ -z "$dev" ]
|
||||||
do
|
do
|
||||||
if [ "$dev" = "l" ]; then
|
if [ "$dev" = "l" ]; then
|
||||||
lsblk
|
lsblk
|
||||||
|
elif [ "$dev" = "q" ]; then
|
||||||
|
exit
|
||||||
else
|
else
|
||||||
if grep -qs "$dev " /proc/mounts; then
|
if grep -qs "$dev " /proc/mounts; then
|
||||||
sync
|
sync
|
||||||
|
|
Loading…
Reference in a new issue