correctly report exit code in clangify (#3520)
This commit is contained in:
parent
1ace060e34
commit
37f9f62f03
1 changed files with 2 additions and 2 deletions
|
@ -56,8 +56,8 @@ done
|
||||||
if [[ $CHECK_FORMAT ]]; then
|
if [[ $CHECK_FORMAT ]]; then
|
||||||
echo "Checking your code using clang-format..."
|
echo "Checking your code using clang-format..."
|
||||||
diff="$(./clangify.sh --diff --cf-version)"
|
diff="$(./clangify.sh --diff --cf-version)"
|
||||||
ok=$?
|
err=$?
|
||||||
case $ok in
|
case $err in
|
||||||
1)
|
1)
|
||||||
cat <<EOM
|
cat <<EOM
|
||||||
***********************************************************
|
***********************************************************
|
||||||
|
|
Loading…
Reference in a new issue