diff --git a/scripts/spec-gen.sh b/scripts/spec-gen.sh index ea041d93..e9f5eca7 100755 --- a/scripts/spec-gen.sh +++ b/scripts/spec-gen.sh @@ -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)" diff --git a/scripts/spec-get.sh b/scripts/spec-get.sh index 337e8d0e..c44243e9 100755 --- a/scripts/spec-get.sh +++ b/scripts/spec-get.sh @@ -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