lint: bash is hard, actually return errors

This commit is contained in:
Pierre Bourdon 2016-06-24 14:27:35 +02:00
parent 2fdfacd6d9
commit 8a1bbaa563
1 changed files with 1 additions and 1 deletions

View File

@ -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