zfs_ensure_mounted: cleanup echo grep pattern

This commit is contained in:
2025-10-17 17:25:30 -04:00
parent eb1e899cc0
commit 5c1e861a89

View File

@@ -19,7 +19,7 @@ final: prev: {
MISSING=""
for target in "$@"; do
if ! echo "$MOUNTED" | grep -Fxq "$target"; then
if ! grep -Fxq "$target" <<< "$MOUNTED"; then
MISSING="$MISSING $target"
fi
done