Skip to content

Commit c69f644

Browse files
author
Daniel Kroening
committed
fix .clang-format-ignore script for travis
1 parent 4dc7725 commit c69f644

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
script: |
1818
clang-format-7 --version
1919
# build a pathspec that excludes the files in .clang-format-ignore
20-
while read file ; do echo EXCLUDES+="':(top,exclude)$file' " ; done < .clang-format-ignore
21-
git-clang-format-7 --binary clang-format-7 "${TRAVIS_BRANCH}" -- $EXCLUDES
20+
while read file ; do EXCLUDES+=" ':(top,exclude)${file}'" ; done < .clang-format-ignore
21+
git-clang-format-7 --binary clang-format-7 "${TRAVIS_BRANCH}" -- ${EXCLUDES}
2222
git diff > formatted.diff
2323
if [[ -s formatted.diff ]] ; then
2424
echo 'Formatting error! The following diff shows the required changes'

0 commit comments

Comments
 (0)