Skip to content

Commit

Permalink
Fix return status grep
Browse files Browse the repository at this point in the history
  • Loading branch information
RafikFarhad committed Nov 12, 2023
1 parent 35b04c4 commit bf27a39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/entrypoint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ jobs:
INPUT_STYLE: "LLVM"
run: |
./entrypoint.sh | tee output || true
grep -q "Checking file: ./examples/file1.c" output || ret=$?
if [ $ret -ne 0 ]; then
grep -q "Checking file: ./examples/file1.c" output | ret=$?
if [ "$ret" -ne 0 ]; then
echo "file1.c should be checked"
exit 8
fi
grep -q "Checking file: ./examples/file2.c" output || ret=$?
grep -q "Checking file: ./examples/file2.c" output | ret=$?
if [ $ret -eq 0 ]; then
echo "file2.c should not be checked"
exit 9
Expand Down

0 comments on commit bf27a39

Please sign in to comment.