Skip to contentSkip to conversation

devtools: improve output of SPDX check

PATCH New Thomas Monjalon 1 participant 1 message Feb 17, 2023

lore
Share & tools
lore
#0 lore raw

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.

---
 devtools/check-spdx-tag.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
devtools/check-spdx-tag.sh +3 -3
index 7624778a8c..191d4a9906 100755
@@ -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