devtools: improve output of SPDX check
PATCH 1/1 devtools: improve output of SPDX check
When printing the check result in the middle of other checks, it helps to get a bit of context about which check it is.
In quiet mode, no need to print result if all is OK.
Signed-off-by Thomas Monjalon <[email protected]>
--- devtools/check-spdx-tag.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
devtools/check-spdx-tag.sh +3 -3
@@ -62,9 +62,9 @@ trap 'rm -f -- "$tmpfile"' INT TERM HUP EXIT check_spdx $quiet || echo - check_boilerplate - $quiet || echo -echo "total: $errors errors, $warnings warnings" +$quiet && [ $errors -eq 0 ] && [ $warnings -eq 0 ] || +echo "SPDX tag check: $errors errors, $warnings warnings" + exit $errors
Signature · 1 line
2.39.1