summaryrefslogtreecommitdiff
path: root/upload_release.sh
diff options
context:
space:
mode:
Diffstat (limited to 'upload_release.sh')
-rwxr-xr-xupload_release.sh3
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