diff --git a/scripts/misc/clang_format_ci.sh b/scripts/misc/clang_format_ci.sh index 645e222c4..06e33c51c 100755 --- a/scripts/misc/clang_format_ci.sh +++ b/scripts/misc/clang_format_ci.sh @@ -40,7 +40,7 @@ git fetch origin master git branch --all # Get affected files and filter source files FILES=$(git diff-tree --no-commit-id --name-only --diff-filter=d -r origin/master "$CURRENT_BRANCH" \ - | grep '\.c\|\.cpp\|\.cxx\|\.h\|\.hpp\|\.hxx\|\.mm') + | grep '\.c$\|\.cpp$\|\.cxx$\|\.h$\|\.hpp$\|\.hxx$\|\.mm$') if [ -z "$FILES" ]; then printf "No affected files, exiting.\n"