Replace the weird magic trap-waterfall-style flow in report_errors.sh with normal calls

This commit is contained in:
Kamil Śliwak
2021-01-18 15:27:00 +01:00
parent 5958e8d9ea
commit ca7327ec3f
2 changed files with 6 additions and 15 deletions
+2 -2
View File
@@ -2,8 +2,6 @@
ERROR_LOG="$(mktemp -t check_style_XXXXXX.log)"
. scripts/report_errors.sh
EXCLUDE_FILES=(
"libsolutil/picosha2.h"
"test/libsolutil/UTF8.cpp"
@@ -23,6 +21,7 @@ if [[ "$WHITESPACE" != "" ]]
then
echo "Error: Trailing whitespace found:" | tee -a $ERROR_LOG
echo "$WHITESPACE" | tee -a $ERROR_LOG
scripts/report_errors.sh "$ERROR_LOG"
exit 1
fi
@@ -51,6 +50,7 @@ if [[ "$FORMATERROR" != "" ]]
then
echo "Coding style error:" | tee -a $ERROR_LOG
echo "$FORMATERROR" | tee -a $ERROR_LOG
scripts/report_errors.sh "$ERROR_LOG"
exit 1
fi
)