From ca6e1083ad79b5acc298c86839d2780f9e6dab07 Mon Sep 17 00:00:00 2001 From: khelia Date: Thu, 3 Dec 2020 16:34:49 +0100 Subject: [PATCH] Update test.sh --- test.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test.sh b/test.sh index 66432c0..ce82ca7 100644 --- a/test.sh +++ b/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 - echo "heroku app not responding, failing deploy" - exit 1 - fi +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" + exit 1 +fi \ No newline at end of file