Skip to content

Commit

Permalink
e2e fix grep
Browse files Browse the repository at this point in the history
  • Loading branch information
liias committed Nov 30, 2024
1 parent d26d7bd commit 2066e86
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,15 @@ jobs:
command_output="$(./browsers --no-gui https://browsers.software)"
echo "$command_output"
if "$command_output" | grep -q 'Firefox Web Browser'; then
if echo "$command_output" | grep -q 'Firefox Web Browser'; then
echo "matched Firefox Web Browser"
fi
if "$command_output" | grep -q 'Google Chrome'; then
if echo "$command_output" | grep -q 'Google Chrome'; then
echo "matched Google Chrome"
fi
if "$command_output" | grep -q 'Microsoft Edge'; then
if echo "$command_output" | grep -q 'Microsoft Edge'; then
echo "matched Microsoft Edge"
fi
shell: bash
Expand Down Expand Up @@ -224,15 +224,15 @@ jobs:
command_output=`cat ./output_file`
echo "$command_output"
if "$command_output" | grep -q 'Safari'; then
if echo "$command_output" | grep -q 'Safari'; then
echo "matched Safari"
fi
if "$command_output" | grep -q 'Chrome'; then
if echo "$command_output" | grep -q 'Chrome'; then
echo "matched Chrome"
fi
if "$command_output" | grep -q 'Google Chrome for Testing'; then
if echo "$command_output" | grep -q 'Google Chrome for Testing'; then
echo "matched Google Chrome for Testing"
fi
# special shell script to make tty working
Expand Down Expand Up @@ -318,19 +318,19 @@ jobs:
command_output="$(./browsers.exe --no-gui https://browsers.software)"
echo "$command_output"
if "$command_output" | grep -q 'Mozilla Firefox'; then
if echo "$command_output" | grep -q 'Mozilla Firefox'; then
echo "matched Mozilla Firefox"
fi
if "$command_output" | grep -q 'Google Chrome'; then
if echo "$command_output" | grep -q 'Google Chrome'; then
echo "matched Google Chrome"
fi
if "$command_output" | grep -q 'Internet Explorer'; then
if echo "$command_output" | grep -q 'Internet Explorer'; then
echo "matched Internet Explorer"
fi
if "$command_output" | grep -q ' Microsoft Edge Profile 1'; then
if echo "$command_output" | grep -q ' Microsoft Edge Profile 1'; then
echo "matched Microsoft Edge (Profile 1)"
fi
shell: bash
Expand Down

0 comments on commit 2066e86

Please sign in to comment.