diff --git a/eng/pipelines/templates/jobs/archetype-sdk-client.yml b/eng/pipelines/templates/jobs/archetype-sdk-client.yml index ebd644d8f..aeb2ffd6c 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-client.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-client.yml @@ -143,7 +143,7 @@ jobs: if [[ `git status | grep modified | awk '{print $2}'` ]]; then echo Some files were not formatted correctly according to the .clang-format file. echo Please run clang-format version 10 or greater to fix the issue by using this bash command at the root of the repo: - echo "find sdk/ -regex '.*\.\(cpp\|hpp\)' -exec clang-format -style=file -i {} \;" + echo "find ./sdk \( -iname '*.hpp' -o -iname '*.cpp' \) ! -iname 'json.hpp' -exec clang-format -i {} \;" echo "" echo "List of files not formatted correctly:" git status | grep modified | awk '{print $2}'