fix: pass check substrings to grep with -e so dash-leading patterns assert
This commit is contained in:
parent
33c27452ac
commit
d4697a0ad5
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue