Browse Source

Update test.sh

main
khelia 6 years ago
parent
commit
ca6e1083ad
  1. 6
      test.sh

6
test.sh

@ -1,5 +1,5 @@
HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://salty-journey-63595.herokuapp.com/`
if [ "$HTTPCODE" -ne 200 ];then
HTTPCODE=echo $(`curl -s -o /dev/null -w "%{http_code}" https://salty-journey-63595.herokuapp.com/` | tr -d ' ')
if [ "$HTTPCODE" -ne 200 ];then
echo "heroku app not responding, failing deploy" echo "heroku app not responding, failing deploy"
exit 1 exit 1
fi
fi
Loading…
Cancel
Save