Skip to content

Commit

Permalink
correct bash if-then-else syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszbudnik committed Jan 8, 2023
1 parent c541520 commit 196306d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ jobs:
RESULT=$(curl -s -X DELETE -H 'x-api-key: abc123' 'http://0.0.0.0:3333/sample/path?with=params')
echo "$RESULT"
if [[ $RESULT =~ '"method":"DELETE"' ]]
then
echo 'Test successful'
exit 0
else
echo 'Test failure'
exit 1
endif
fi

0 comments on commit 196306d

Please sign in to comment.