From 759ccc0695feb9e71138a1c30145f0b094a0753d Mon Sep 17 00:00:00 2001 From: Mauro Lacy Date: Fri, 21 Jan 2022 13:14:54 +0100 Subject: [PATCH] Fix tag consolidation for matching CHANGELOG entries --- scripts/update_changelog.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update_changelog.sh b/scripts/update_changelog.sh index 09331e61e..6b2900615 100755 --- a/scripts/update_changelog.sh +++ b/scripts/update_changelog.sh @@ -44,7 +44,7 @@ echo "Git version tag: $TAG" cp CHANGELOG.md /tmp/CHANGELOG.md.$$ # Consolidate tag for matching changelog entries -TAG=$(echo "$TAG" | sed 's/-\([A-Za-z]*\)[^A-Za-z]*/-\1/') +TAG=$(echo "$TAG" | sed -e 's/-\([A-Za-z]*\)[^A-Za-z]*/-\1/' -e 's/-$//') echo "Consolidated tag: $TAG" sed -i -n "/^## \\[${TAG}[^]]*\\]/,\$p" CHANGELOG.md