This commit is contained in:
parent
b0be170b41
commit
498c371547
@ -10,7 +10,7 @@ ALL_OK=1
|
|||||||
|
|
||||||
for f in ${SOURCES[@]}
|
for f in ${SOURCES[@]}
|
||||||
do
|
do
|
||||||
clang-format -n $f 2>&1 | grep -q ^
|
clang-format -n $f 2>&1 | tee -a /tmp/clang-format-output | grep -q ^
|
||||||
RESULT=$?
|
RESULT=$?
|
||||||
if [ "$RESULT" -eq "0" ]
|
if [ "$RESULT" -eq "0" ]
|
||||||
then
|
then
|
||||||
@ -25,4 +25,7 @@ then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cat /tmp/clang-format-output
|
||||||
|
rm /tmp/clang-format-output
|
||||||
|
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user