Skip to content

Commit

Permalink
Change to count
Browse files Browse the repository at this point in the history
  • Loading branch information
RafikFarhad committed Nov 12, 2023
1 parent 5de7ed2 commit bbe013b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/entrypoint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ jobs:
run: |
./entrypoint.sh | tee output || true
echo "Ran entrypoint.sh -> $?"
grep -q "Checking file: ./examples/file1.c" output; ret=$? || true
echo "grep 1 -> $ret -> $?"
if [ $ret -ne 0 ]; then
count1=$(grep -c "Checking file: ./examples/file1.c" output) || true
echo "grep 1 -> $count1 -> $?"
if [ $count1 -ne 1 ]; then
echo "file1.c should be checked"
exit 8
fi
echo "file1.c is checked $?"
grep -q "Checking file: ./examples/file2.c" output; ret=$? || true
echo "grep 2 -> $ret -> $?"
if [ $ret -eq 0 ]; then
count2=$(grep -c "Checking file: ./examples/file2.c" output) || true
echo "grep 2 -> $count2 -> $?"
if [ $count2 -ne 0 ]; then
echo "file2.c should not be checked"
exit 9
fi
Expand Down

0 comments on commit bbe013b

Please sign in to comment.