mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 23:08:14 +00:00
ci: ugly bashism to make clang-format-check fail properly
This commit is contained in:
parent
f8a1f47e67
commit
0df2ef10a1
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
error=0
|
||||
for f in $*; do
|
||||
changes=$(clang-format -output-replacements-xml "$f" | grep -c '^<replacement ')
|
||||
changes=$(clang-format -output-replacements-xml "$f" | grep -c '^<replacement '; exit ${PIPESTATUS[0]})
|
||||
if [ "$?" -ne "0" ]; then
|
||||
echo "clang-format failed"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user