lint: bash is hard, actually return errors
This commit is contained in:
parent
2fdfacd6d9
commit
8a1bbaa563
|
@ -5,7 +5,7 @@
|
||||||
fail=0
|
fail=0
|
||||||
|
|
||||||
# Check for clang-format issues.
|
# 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
|
if ! echo "${f}" | egrep -q "[.](cpp|h|mm)$"; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue