Commit 3dde4a51 authored by Eitan Adler's avatar Eitan Adler

- bash is not needed for this script

- find could not possibly have worked prior
parent 38fa581e
#!/bin/bash #!/bin/sh
set -eu set -eu
......
#!/bin/bash #!/bin/sh
set -eu set -eu
failed=0 failed=0
for fn in $(find -name '*.cpp' -o -name '*.h'); do for fn in $(find . -name '*.cpp' -o -name '*.h'); do
$1 -style=file -output-replacements-xml $fn | grep -q "replacement offset" && { echo $fn "failed clang-format check"; failed=1; } $1 -style=file -output-replacements-xml $fn | grep -q "replacement offset" && { echo $fn "failed clang-format check"; failed=1; }
done done
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment