mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 12:15:09 -05:00
fix(format_cpp): More robust error reporting
This commit is contained in:
6
.github/workflows/scripts/format_cpp.sh
vendored
6
.github/workflows/scripts/format_cpp.sh
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user