Browse Source

delete spaces in 200 variable

main
sipe-daniel 6 years ago
parent
commit
86e5301276
  1. 4
      testMaster-III-TP-CD.sh

4
testMaster-III-TP-CD.sh

@ -1,4 +1,6 @@
HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/`
HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://whispering-garden-62583.herokuapp.com/`
HTTPCODE=$(echo $HTTPCODE | tr -d ' ')
#statements
if [ "$HTTPCODE" -ne 200 ];then if [ "$HTTPCODE" -ne 200 ];then
echo "heroku app not responding, failing deploy" echo "heroku app not responding, failing deploy"
exit 1 exit 1

Loading…
Cancel
Save