Only exit if the TRAVIS_COMMIT_RANGE is not empty (#4565)

This commit is contained in:
Daniel Tschinder
2016-09-26 05:29:13 +02:00
committed by Henry Zhu
parent 819cde936c
commit 702259d483

View File

@@ -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
}