fix: pass check substrings to grep with -e so dash-leading patterns assert

This commit is contained in:
claude-hdb 2026-07-10 20:53:32 +00:00
parent 33c27452ac
commit d4697a0ad5

View file

@ -17,7 +17,7 @@ check() {
printf '%s\n' "$out" | sed 's/^/ /'
FAIL=$((FAIL + 1)); return
fi
if [ -n "$substr" ] && ! printf '%s' "$out" | grep -qF "$substr"; then
if [ -n "$substr" ] && ! printf '%s' "$out" | grep -qF -e "$substr"; then
echo "FAIL: $desc — output missing '$substr'"
printf '%s\n' "$out" | sed 's/^/ /'
FAIL=$((FAIL + 1)); return