From 066787f44f08e6648773bc9805af9bc0d07e9a1a Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Sun, 17 Dec 2017 17:34:38 -0600 Subject: [PATCH] traivs: fix equality operator --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8321540..c878848 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,8 @@ script: - hugo after_success: | - if [ -n "$GITHUB_TOKEN" ] && [ "$TRAVIS_BRANCH" -eq "master" ]; then + if [ -n "$GITHUB_TOKEN" ] && [ "$TRAVIS_BRANCH" == "master" ]; then + set -e cd "$TRAVIS_BUILD_DIR" cd public git init @@ -20,4 +21,5 @@ after_success: | # This works because the API key can replace your password. git push -f -q https://cwpearson:$GITHUB_TOKEN@github.com/cwpearson/cwpearson.github.io master 2> /dev/null cd "$TRAVIS_BUILD_DIR" + set +e fi