diff --git a/Tools/lint.sh b/Tools/lint.sh index 4e502bdd4b..c1feb41fe3 100755 --- a/Tools/lint.sh +++ b/Tools/lint.sh @@ -5,7 +5,7 @@ fail=0 # Check for clang-format issues. -git status --porcelain | awk '{print $2}' | while read f; do +for f in $(git status --porcelain | awk '{print $2}'); do if ! echo "${f}" | egrep -q "[.](cpp|h|mm)$"; then continue fi