Skip to content

Commit

Permalink
fix action http code bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Strosel committed Aug 21, 2020
1 parent 10dbd6d commit cefe753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wasm-action/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if [ "$?" -ne 0 ]; then
exit 1
fi

if [ $RES -ge 200 ] && [ $RES -le 299 ]; then
if [ $RES -lt 200 ] || [ $RES -ge 300 ]; then
echo "HTTP error ${RES}"
cat $tmp
exit 1
Expand Down

0 comments on commit cefe753

Please sign in to comment.