Skip to content

Commit

Permalink
ci: escape special sed character
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-grande committed Jul 8, 2024
1 parent f30e5e1 commit 6e6c7b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/spec-gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ gen_spec(){
version="$(get_spec version)"
license_csv="$(get_spec license_csv)"
## 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)"
packager="$(get_spec packager)"
url="$(get_spec url)"
Expand Down
2 changes: 1 addition & 1 deletion scripts/spec-get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ if test "${key}" = "license" || test "${key}" = "license_csv"; then
license_csv="$(reuse --root "${project_dir}" lint |
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

## The macro %autochangelog prints logs of all projects and we separate a
Expand Down

0 comments on commit 6e6c7b4

Please sign in to comment.