diff --git a/.travis/push.sh b/.travis/push.sh index b1f7bd6a5..ace5fb035 100755 --- a/.travis/push.sh +++ b/.travis/push.sh @@ -4,9 +4,8 @@ setup_git() { } commit_website_files() { - echo "$TRAVIS_EVENT_TYPE $TRAVIS_BRANCH" - if [[ $(( $TRAVIS_EVENT_TYPE )) != 'pull_request' ]]; then - if [[ $(( $TRAVIS_BRANCH )) == 'master' ]]; then + if [ $TRAVIS_EVENT_TYPE != "pull_request" ]; then + if [ $TRAVIS_BRANCH == "master" ]; then echo "Commiting to master branch..." git checkout master git add * @@ -16,8 +15,8 @@ commit_website_files() { } upload_files() { - if [[ $(( $TRAVIS_EVENT_TYPE )) != 'pull_request' ]]; then - if [[ $(( $TRAVIS_BRANCH )) == 'master' ]]; then + if [ $TRAVIS_EVENT_TYPE != "pull_request" ]; then + if [ $TRAVIS_BRANCH == "master" ]; then echo "Pushing to master branch..." git push --force --quiet "https://${GH_TOKEN}@github.com/Chalarangelo/30-seconds-of-code.git" master > /dev/null 2>&1 fi