diff --git a/tools/check-formatting.sh b/tools/check-formatting.sh index 0d55a420..c68287d6 100755 --- a/tools/check-formatting.sh +++ b/tools/check-formatting.sh @@ -10,7 +10,7 @@ ALL_OK=1 for f in ${SOURCES[@]} do - clang-format -n $f 2>&1 | grep -q ^ + clang-format -n $f 2>&1 | tee -a /tmp/clang-format-output | grep -q ^ RESULT=$? if [ "$RESULT" -eq "0" ] then @@ -25,4 +25,7 @@ then exit 0 fi +cat /tmp/clang-format-output +rm /tmp/clang-format-output + exit 1