From 2066e8650b9c0be46abf85aa1b1e68a6b7de60fd Mon Sep 17 00:00:00 2001 From: Madis Liias Date: Sat, 30 Nov 2024 16:54:07 +0200 Subject: [PATCH] e2e fix grep --- .github/workflows/ci.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b9e17be..9b4735a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 @@ -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