diff --git a/scripts/spec-get.sh b/scripts/spec-get.sh index ae64106..f79c154 100755 --- a/scripts/spec-get.sh +++ b/scripts/spec-get.sh @@ -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