diff options
| author | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2025-03-21 15:00:35 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2025-03-21 15:00:35 +0100 |
| commit | 0b96de92342481f977fb3f1fba7a84324981af2a (patch) | |
| tree | 7b054b8c7f56e803e7aafeb15f9c0def2f8091c9 /upload_release.sh | |
| parent | 7220c5c2bf8437034b10a65099420b432a0cdf2a (diff) | |
Upload Release: Fix newline escaping in changelog
Diffstat (limited to 'upload_release.sh')
| -rwxr-xr-x | upload_release.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/upload_release.sh b/upload_release.sh index 734acde..a16d78d 100755 --- a/upload_release.sh +++ b/upload_release.sh @@ -33,6 +33,9 @@ else CHANGES=$(printf "These releases are signed with \`keys/app+linux@eduvpn.org.asc\` and \`keys/minisign-CA9409316AC93C07.pub\`\nChangelog:\n%s" "${CHANGES_TRIM}") fi +# make sure newlines are converted correctly, otherwise Codeberg API gives an error +CHANGES=${CHANGES//$'\n'/\\n} + if ! command -v "curl" &>/dev/null; then echo "please install curl for contacting the Codeberg API" exit 1 |
