We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6765c2c commit c86f7d7Copy full SHA for c86f7d7
1 file changed
scripts/release.sh
@@ -147,8 +147,8 @@ if [ "$DRY_RUN" = true ]; then
147
RELEASE_NOTES=$(sed -n '/^## \[Unreleased\]/,/^## \[/{/^## \[/d;p;}' "$CHANGELOG")
148
fi
149
150
-# Trim leading/trailing whitespace
151
-RELEASE_NOTES=$(echo "$RELEASE_NOTES" | sed -e '/./,$!d' -e :a -e '/^\n*$/{$d;N;ba}')
+# Trim leading/trailing whitespace (using perl for macOS compatibility)
+RELEASE_NOTES=$(echo "$RELEASE_NOTES" | perl -0777 -pe 's/^\s+//; s/\s+$//')
152
153
if [ -z "$RELEASE_NOTES" ]; then
154
warn "No release notes extracted — the GitHub Release will have minimal content"
0 commit comments