zfs_ensure_mounted: cleanup sed awk call

This commit is contained in:
Simon Gardling 2025-10-14 23:00:55 -04:00
parent d7d84848bb
commit 3811193739
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -15,7 +15,7 @@ final: prev: {
exit 1
fi
MOUNTED=$(zfs list -o mountpoint,mounted -H | awk '$NF == "yes" {$NF=""; print $0}' | sed 's/[[:space:]]*$//')
MOUNTED=$(zfs list -o mountpoint,mounted -H | awk '$NF == "yes" {NF--; print}')
MISSING=""
for target in "$@"; do