From 31a5bfdcba5eb92703fba68c1c401fb3d0d0b5bc Mon Sep 17 00:00:00 2001 From: Hanope Date: Thu, 27 Sep 2018 13:01:17 +0900 Subject: [PATCH] Simplify escaping of newline characters when publishing release notes Closes gh-14620 --- ci/scripts/publish-release-notes.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/scripts/publish-release-notes.sh b/ci/scripts/publish-release-notes.sh index a178ad4e69c0..f5c90932cfa2 100755 --- a/ci/scripts/publish-release-notes.sh +++ b/ci/scripts/publish-release-notes.sh @@ -15,7 +15,7 @@ java -jar -Dreleasenotes.github.organization=${GITHUB_ORGANIZATION} -Dreleasenot popd > /dev/null -body=$( sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g' release-notes-repo/release-notes.md ) +body=$( while read line; do echo -n "$line\\n"; done < release-notes-repo/release-notes.md ) curl \ -s \