release: fix changelog parsing in release.sh after d57af51316
(#2235)
This commit is contained in:
parent
ac231a0627
commit
c4a64f3ade
|
@ -119,8 +119,8 @@ echo 'Creating tag...'
|
|||
echo
|
||||
found=no
|
||||
while read -r line; do
|
||||
if [[ "$line" == *: ]]; then
|
||||
[ "$line" == "$version:" ] && found=yes || found=no
|
||||
if [[ "$line" == "# "* ]]; then
|
||||
[ "$line" == "# $version" ] && found=yes || found=no
|
||||
fi
|
||||
[ "$found" == 'yes' ] && [ "${line:0:1}" == '*' ] && echo "$line"
|
||||
done < ChangeLog.md
|
||||
|
|
Loading…
Reference in New Issue