From ad8b2a6a5583c1294e26ff8ac85d6eedbcb58753 Mon Sep 17 00:00:00 2001 From: Aaron Nwabuoku Date: Thu, 15 Aug 2024 01:43:17 -0400 Subject: [PATCH] build: improve prepare-release script --- prepare-release.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prepare-release.sh b/prepare-release.sh index c352f96..5a8a5d1 100755 --- a/prepare-release.sh +++ b/prepare-release.sh @@ -11,9 +11,9 @@ EXTENSION_FILE="extension.yaml" CHANGELOG_FILE="CHANGELOG.md" echo "Preparing extension for version $NEXT_RELEASE_VERSION" -sed -i.bak "s/^version:.*/version: $NEXT_RELEASE_VERSION/" $EXTENSION_FILE +sed -i "s/^version:.*/version: $NEXT_RELEASE_VERSION/" $EXTENSION_FILE echo "Updated version in $EXTENSION_FILE to $NEXT_RELEASE_VERSION" echo "Preparing changelog for version $NEXT_RELEASE_VERSION" -sed -i.bak 's/^# /## Version /' $CHANGELOG_FILE -echo "Updated headings in $CHANGELOG_FILE" +sed -i "/^# $NEXT_RELEASE_VERSION/s/^# /## Version /" $CHANGELOG_FILE +echo "Updated heading in $CHANGELOG_FILE"