Update check-formatting.sh
This commit is contained in:
parent
62e4ed824d
commit
999d90d588
@ -12,8 +12,9 @@ ALL_OK=1
|
|||||||
|
|
||||||
for f in ${SOURCES[@]}
|
for f in ${SOURCES[@]}
|
||||||
do
|
do
|
||||||
clang-format -n $f 2>&1 | grep ".*" >/dev/null
|
clang-format -n $f 2>&1 | grep -q ^
|
||||||
if [ "$?" = "0" ]
|
RESULT=$?
|
||||||
|
if [ "$RESULT" = "0" ]
|
||||||
then
|
then
|
||||||
echo "File $f needs formatting"
|
echo "File $f needs formatting"
|
||||||
ALL_OK=0
|
ALL_OK=0
|
||||||
|
Loading…
Reference in New Issue
Block a user