diff --git a/scripts/release/commit-and-tag.sh b/scripts/release/commit-and-tag.sh index ee2b5a8c..277d0fca 100755 --- a/scripts/release/commit-and-tag.sh +++ b/scripts/release/commit-and-tag.sh @@ -11,10 +11,7 @@ tag_exists() ( update_changelog() ( local ts=$(date +"%Y-%m-%d") - local changelog_entry=$(cat << EOF -## [$LD_RELEASE_VERSION] - $ts -$CHANGELOG_ENTRY -EOF + local changelog_entry=$(printf "## [%s] - %s\n%s\n" "$LD_RELEASE_VERSION" "$ts" "$CHANGELOG_ENTRY") # insert the new changelog entry (followed by empty line) after line 4 # of CHANGELOG.md