mirror of https://github.com/jarun/nnn.git
plugins/nmount: sync only that device, which user wants to unmount
This commit is contained in:
parent
606695a72b
commit
8193170dc3
|
@ -33,7 +33,7 @@ while [ -n "$dev" ]; do
|
|||
exit
|
||||
else
|
||||
if grep -qs "$dev " /proc/mounts; then
|
||||
sync
|
||||
sync "$(lsblk -n "/dev/$dev" -o MOUNTPOINT | sed "/^$/d")"
|
||||
if pumount "$dev"
|
||||
then
|
||||
echo "$dev" unmounted.
|
||||
|
|
Loading…
Reference in New Issue