zfs_ensure_mounted: cleanup sed awk call

This commit is contained in:
2025-10-14 23:00:55 -04:00
parent d7d84848bb
commit 3811193739

View File

@@ -15,7 +15,7 @@ final: prev: {
exit 1 exit 1
fi 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="" MISSING=""
for target in "$@"; do for target in "$@"; do