diff --git a/.travis.yml b/.travis.yml index 9fa6d5d55252a7..d1b4f3099911da 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,9 @@ matrix: script: - make lint # Lint the first commit in the PR. - - \[ "${TRAVIS_PULL_REQUEST}" != "false" \] && bash tools/lint-pr-commit-message.sh ${TRAVIS_PULL_REQUEST} + - if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then + bash tools/lint-pr-commit-message.sh ${TRAVIS_PULL_REQUEST}; + fi - name: "Test Suite" addons: apt: