From 1951402d8a763663b430324096f6ce5609929a30 Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Sun, 4 Feb 2018 13:06:40 -0800 Subject: [PATCH] Make CLI not fail if NOW_TOKEN is invalid" --- bin/deploy.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/deploy.sh b/bin/deploy.sh index 107b2a3..95a7915 100755 --- a/bin/deploy.sh +++ b/bin/deploy.sh @@ -4,12 +4,12 @@ set -e if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then if [[ -z ${NOW_TOKEN+x} ]]; then if [[ $(git log -1 --pretty=%B --no-merges) != *"WIP"* ]]; then - NOW_URL=$(now -e NODE_ENV=production --public --no-clipboard --team=dawn --token="$NOW_TOKEN") + NOW_URL=$(now -e NODE_ENV=production --public --no-clipboard --team=dawn --token="$NOW_TOKEN") || exit 0 curl -X POST \ - -H 'Content-type: application/json' \ - --data "{\"text\": \":small_red_triangle: New Carbon PR Deployment for \\n:rocket: $NOW_URL\"}" \ - "$DAWN_SLACK_WEBHOOK" + -H 'Content-type: application/json' \ + --data "{\"text\": \":small_red_triangle: New Carbon PR Deployment for \\n:rocket: $NOW_URL\"}" \ + "$DAWN_SLACK_WEBHOOK" fi fi fi