Fixed an issue with the update file due to double quotes

This commit is contained in:
Thorsten Sommer 2024-08-24 13:59:43 +02:00
parent ae17104886
commit fc9ef7ba45
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -729,6 +729,9 @@ jobs:
# Replace newlines in changelog with \n # Replace newlines in changelog with \n
changelog=$(echo "$CHANGELOG" | awk '{printf "%s\\n", $0}') changelog=$(echo "$CHANGELOG" | awk '{printf "%s\\n", $0}')
# Escape double quotes in changelog:
changelog=$(echo "$changelog" | sed 's/"/\\"/g')
# Create the latest.json file: # Create the latest.json file:
cat <<EOOOF > $GITHUB_WORKSPACE/release/assets/latest.json cat <<EOOOF > $GITHUB_WORKSPACE/release/assets/latest.json
{ {