plugins/nmount: simplify pipe

This commit is contained in:
8B411 2022-12-20 14:28:50 +02:00
parent 7b5080fc69
commit 797b166602
No known key found for this signature in database
GPG Key ID: 48FD2BA7DBCBD45D
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ while [ -n "$dev" ]; do
elif [ -b "/dev/$dev" ]; then
pmount "/dev/$dev"
sleep 1
echo "/dev/$dev" mounted to "$(lsblk -n /dev/"$dev" | rev | cut -d' ' -f1 | rev)".
echo "/dev/$dev mounted to $(lsblk -n "/dev/$dev" -o MOUNTPOINT | sed "/^$/d")."
else
echo "/dev/$dev does not exist or is not a block device."
fi