1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

ci: ugly bashism to make clang-format-check fail properly

This commit is contained in:
matejcik 2019-05-14 12:00:59 +02:00
parent f8a1f47e67
commit 0df2ef10a1

View File

@ -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