plugins/nmount: sync only that device, which user wants to unmount

This commit is contained in:
8B411 2022-12-20 14:02:00 +02:00
parent 606695a72b
commit 8193170dc3
No known key found for this signature in database
GPG Key ID: 48FD2BA7DBCBD45D
1 changed files with 1 additions and 1 deletions

View File

@ -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.