fix(format_cpp): More robust error reporting

This commit is contained in:
rudy
2021-12-30 20:31:49 +01:00
committed by Quentin Bourgerie
parent b8bd38dd6c
commit 0f1dbd919d

View File

@@ -1,12 +1,8 @@
#!/bin/bash
set -o pipefail
set -e -o pipefail
find ./compiler/{include,lib,src} -iregex '^.*\.\(cpp\|cc\|h\|hpp\)$' | xargs clang-format -i -style='file'
if [ $? -ne 0 ]
then
exit 1
fi
# show changes if any
git --no-pager diff