mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-01 11:58:28 +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
|
error=0
|
||||||
for f in $*; do
|
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
|
if [ "$?" -ne "0" ]; then
|
||||||
echo "clang-format failed"
|
echo "clang-format failed"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user