zfs_ensure_mounted: cleanup echo grep pattern

This commit is contained in:
2025-10-17 17:25:30 -04:00
parent 852ec18c7b
commit 9e35448f04

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