ci: tweak 'modified' detection in clang-format job
This commit is contained in:
parent
b0c523e12b
commit
fa91beed17
|
@ -140,7 +140,7 @@ clang-format:
|
|||
script:
|
||||
- ./scripts/clang-format-all.sh
|
||||
# check if any files are now modified and error if yes
|
||||
- (if git diff --name-only --diff-filter=M | grep '\..pp$'; then echo $'\n Some files are not properly formatted. You can use "./scripts/clang-format-all.sh".\n'; git diff --diff-filter=M; false; fi)
|
||||
- (if [ -n "`git diff --name-only --diff-filter=M`" ]; then echo $'\n Some files are not properly formatted. You can use "./scripts/clang-format-all.sh".\n'; git diff --diff-filter=M; false; fi)
|
||||
|
||||
bionic-test:
|
||||
<<: *test_deb_definition
|
||||
|
|
Loading…
Reference in New Issue