Skip to content

Commit 5299017

Browse files
authored
travis: anchor grep for astyle
Should not pick up .cmake files (just .c files)
1 parent f5ad355 commit 5299017

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
@@ -129,7 +129,7 @@ matrix:
129129
- astyle --version
130130
script:
131131
# only changed files this time
132-
git diff --name-only --diff-filter=d $TRAVIS_BRANCH | grep '.*\.\(h\|c\|hpp\|cpp\)' | fgrep -v -f .astyleignore | xargs -n 100 -I {} bash -c "astyle -n --options=.astylerc \"{}\"" > astyle-files-changed.out;
132+
git diff --name-only --diff-filter=d $TRAVIS_BRANCH | grep '.*\.\(h\|c\|hpp\|cpp\)$' | fgrep -v -f .astyleignore | xargs -n 100 -I {} bash -c "astyle -n --options=.astylerc \"{}\"" > astyle-files-changed.out;
133133
if [ $(cat astyle-files-changed.out | grep Formatted | wc -l) -ne 0 ]; then
134134
git --no-pager diff;
135135
echo "";

0 commit comments

Comments
 (0)