mirror of
https://github.com/ben-grande/qusal.git
synced 2024-10-01 02:35:49 -04:00
build: dictionary sort licenses names
GHA can sort differently than local.
This commit is contained in:
parent
0f6aa34a89
commit
f30e5e11a9
@ -88,7 +88,8 @@ fi
|
|||||||
|
|
||||||
if test "${key}" = "license" || test "${key}" = "license_csv"; then
|
if test "${key}" = "license" || test "${key}" = "license_csv"; then
|
||||||
license_csv="$(reuse --root "${project_dir}" lint |
|
license_csv="$(reuse --root "${project_dir}" lint |
|
||||||
awk -F ':' '/^* Used licenses:/{print $2}' | tr -d " ")"
|
awk -F ':' '/^\* Used licenses:/{print $2}' | tr " " "\n" | sort -d |
|
||||||
|
tr -s "\n" " " | tr -d " ")"
|
||||||
license="$(echo "${license_csv}" | sed "s/,/ AND /g")"
|
license="$(echo "${license_csv}" | sed "s/,/ AND /g")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user