mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 12:15:09 -05:00
seems like big diffs weren't catched. Now we use ifne which checks if the stdin isn't empty
15 lines
284 B
Bash
Executable File
15 lines
284 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -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
|
|
# fail if there is a diff, success otherwise
|
|
git diff | ifne exit 1
|