Skip to content

Commit

Permalink
build: dictionary sort licenses names
Browse files Browse the repository at this point in the history
GHA can sort differently than local.
  • Loading branch information
ben-grande committed Jul 8, 2024
1 parent 0f6aa34 commit f30e5e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/spec-get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +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 -d " ")"
awk -F ':' '/^\* Used licenses:/{print $2}' | tr " " "\n" | sort -d |
tr -s "\n" " " | tr -d " ")"
license="$(echo "${license_csv}" | sed "s/,/ AND /g")"
fi

Expand Down

0 comments on commit f30e5e1

Please sign in to comment.