Skip to content

Commit

Permalink
Only exit if the TRAVIS_COMMIT_RANGE is not empty (#4565)
Browse files Browse the repository at this point in the history
  • Loading branch information
danez authored and hzoo committed Sep 26, 2016
1 parent 819cde9 commit 702259d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -7,7 +7,7 @@ cache:
- node_modules
before_install:
- |
git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(^(doc))/' || {
[ "$TRAVIS_COMMIT_RANGE" = "" ] || git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(^(doc))/' || {
echo "Only docs were updated, stopping build process."
exit
}
Expand Down

0 comments on commit 702259d

Please sign in to comment.