Make CLI not fail if NOW_TOKEN is invalid"

main
Mike Fix 7 years ago
parent 262f2d6d94
commit 1951402d8a

@ -4,7 +4,7 @@ set -e
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
if [[ -z ${NOW_TOKEN+x} ]]; then if [[ -z ${NOW_TOKEN+x} ]]; then
if [[ $(git log -1 --pretty=%B --no-merges) != *"WIP"* ]]; 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 \ curl -X POST \
-H 'Content-type: application/json' \ -H 'Content-type: application/json' \

Loading…
Cancel
Save