release: fix changelog parsing in release.sh after d57af51316 (#2235)

This commit is contained in:
Anton Soroko 2024-01-30 22:50:43 +03:00 committed by GitHub
parent ac231a0627
commit c4a64f3ade
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -119,8 +119,8 @@ echo 'Creating tag...'
echo echo
found=no found=no
while read -r line; do while read -r line; do
if [[ "$line" == *: ]]; then if [[ "$line" == "# "* ]]; then
[ "$line" == "$version:" ] && found=yes || found=no [ "$line" == "# $version" ] && found=yes || found=no
fi fi
[ "$found" == 'yes' ] && [ "${line:0:1}" == '*' ] && echo "$line" [ "$found" == 'yes' ] && [ "${line:0:1}" == '*' ] && echo "$line"
done < ChangeLog.md done < ChangeLog.md