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 a647b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/spec-get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ 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 -d " " | sort -d)"
license="$(echo "${license_csv}" | sed "s/,/ AND /g")"
fi

Expand Down

0 comments on commit a647b40

Please sign in to comment.