mirror of
https://github.com/jarun/nnn.git
synced 2025-01-11 18:39:42 +00:00
Fix nmount on blank entry
This commit is contained in:
parent
78de6b5752
commit
bd2831498c
|
@ -10,6 +10,11 @@ lsblk
|
||||||
echo
|
echo
|
||||||
echo -n "device (e.g. sdc2): "
|
echo -n "device (e.g. sdc2): "
|
||||||
read dev
|
read dev
|
||||||
|
|
||||||
|
if [ -z "$dev" ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
|
||||||
if grep -qs "$dev " /proc/mounts; then
|
if grep -qs "$dev " /proc/mounts; then
|
||||||
|
|
Loading…
Reference in a new issue