diff options
| -rw-r--r-- | CHANGES.md | 4 | ||||
| -rwxr-xr-x | upload_release.sh | 3 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,7 @@ +# Unreleased +* Upload Release script: + - Escape changelog newlines + # 3.0.0 (2025-03-21) * Dependencies: Update * CLI: Remove some logging and allow to set profile ID non-interactively (#83) 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 |
