ci: reproducible license sort

This commit is contained in:
Ben Grande 2024-07-08 19:08:01 +02:00
parent 49fb82a177
commit 6eb13fa07f
No known key found for this signature in database
GPG key ID: 00C64E14F51F9E56
2 changed files with 2 additions and 8 deletions

View file

@ -88,8 +88,8 @@ fi
if test "${key}" = "license" || test "${key}" = "license_csv"; then
license_csv="$(reuse --root "${project_dir}" lint |
awk -F ':' '/^\* Used licenses:/{print $2}' | tr " " "\n" | sort -d |
tr -s "\n" " " | tr -d " ")"
awk -F ':' '/^\* Used licenses:/{print $2}' | tr " " "\n" | tr -d "," |
sort -d | tr -s "\n" "," | sed "s/^\,//;s/\,$//")"
license="$(echo "${license_csv}" | sed "s/\,/ AND /g")"
fi