Choose proper exit code for iwyu script upon failure (#30813)

* Print diffs made by iwyu

* Choose proper exit code for iwyu script upon failure
pull/30800/head^2
Vignesh Babu 2 years ago committed by GitHub
parent cbed2cef57
commit e2ceb1368a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tools/dockerfile/grpc_iwyu/iwyu.sh

@ -109,4 +109,6 @@ if [ $? -ne 0 ]
then
echo "Iwyu edited some files. Here is the diff of files edited by iwyu:"
git --no-pager diff
# Exit with a non zero error code to ensure sanity checks fail accordingly.
exit 1
fi

Loading…
Cancel
Save