Update check-formatting.sh

This commit is contained in:
apio 2022-12-05 19:02:23 +01:00
parent 62e4ed824d
commit 999d90d588
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -12,8 +12,9 @@ ALL_OK=1
for f in ${SOURCES[@]}
do
clang-format -n $f 2>&1 | grep ".*" >/dev/null
if [ "$?" = "0" ]
clang-format -n $f 2>&1 | grep -q ^
RESULT=$?
if [ "$RESULT" = "0" ]
then
echo "File $f needs formatting"
ALL_OK=0