ci: escape special sed character

This commit is contained in:
Ben Grande 2024-07-08 18:34:41 +02:00
parent f30e5e11a9
commit 6e6c7b452f
No known key found for this signature in database
GPG Key ID: 00C64E14F51F9E56
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ gen_spec(){
version="$(get_spec version)" version="$(get_spec version)"
license_csv="$(get_spec license_csv)" license_csv="$(get_spec license_csv)"
## Ideally we would query the license, but it is a heavy call. ## Ideally we would query the license, but it is a heavy call.
license="$(echo "${license_csv}" | sed "s/,/ AND /g")" license="$(echo "${license_csv}" | sed "s/\,/ AND /g")"
vendor="$(get_spec vendor)" vendor="$(get_spec vendor)"
packager="$(get_spec packager)" packager="$(get_spec packager)"
url="$(get_spec url)" url="$(get_spec url)"

View File

@ -90,7 +90,7 @@ 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 " " "\n" | sort -d | awk -F ':' '/^\* Used licenses:/{print $2}' | tr " " "\n" | sort -d |
tr -s "\n" " " | tr -d " ")" tr -s "\n" " " | tr -d " ")"
license="$(echo "${license_csv}" | sed "s/,/ AND /g")" license="$(echo "${license_csv}" | sed "s/\,/ AND /g")"
fi fi
## The macro %autochangelog prints logs of all projects and we separate a ## The macro %autochangelog prints logs of all projects and we separate a