Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(ci): quote shell comparison to avoid errors when unset
Browse files Browse the repository at this point in the history
Avoids log of "/home/travis/.travis/functions: line 109: test: ==: unary
operator expected" in travisci build output
  • Loading branch information
anthonybilinski committed Feb 22, 2020
1 parent 5b31eff commit 475128d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,12 +271,12 @@ deploy:

after_success:
- >
test $TRAVIS_PULL_REQUEST == "false"
&& test $TRAVIS_BRANCH == "master"
&& test $JOB == "build-docs"
test "$TRAVIS_PULL_REQUEST" == "false"
&& test "$TRAVIS_BRANCH" == "master"
&& test "$JOB" == "build-docs"
&& bash ./.travis/deploy-docs.sh
- >
test $TRAVIS_PULL_REQUEST == "false"
&& test $TRAVIS_BRANCH == "master"
&& test $JOB == "build-gitstats"
test "$TRAVIS_PULL_REQUEST" == "false"
&& test "$TRAVIS_BRANCH" == "master"
&& test "$JOB" == "build-gitstats"
&& bash ./.travis/deploy-gitstats.sh

0 comments on commit 475128d

Please sign in to comment.