mirror of
https://github.com/ben-grande/qusal.git
synced 2025-05-02 06:16:18 -04:00
ci: reproducible license sort
This commit is contained in:
parent
49fb82a177
commit
6eb13fa07f
2 changed files with 2 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue