Skip to content

Commit 1994969

Browse files
peterschrammeltautschnig
authored andcommitted
Do not try to run cpplint if no files have changed
1 parent 3d9eba2 commit 1994969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ script:
4848
matrix:
4949
include:
5050
- env: NAME="CPP-LINT"
51-
script: cd .. && python scripts/cpplint.py `git diff --name-only master HEAD`
51+
script: cd .. && DIFF=`git diff --name-only master HEAD` && if [ "$DIFF" != "" ]; then python scripts/cpplint.py $DIFF; fi

0 commit comments

Comments
 (0)