Publish script: fix change log extraction code

This commit is contained in:
Benoit Blanchon
2022-01-08 17:59:07 +01:00
parent 896f50eeb9
commit fcae33d574

View File

@ -8,7 +8,7 @@ CHANGELOG="$2"
cat << END
## Changes
$(awk '/\* /{ FOUND=1; print; next } { if (FOUND) exit}' "$CHANGELOG")
$(awk '/\* /{ FOUND=1 } /^[[:space:]]*$/ { if(FOUND) exit } { if(FOUND) print }' "$CHANGELOG")
[View version history](https://github.com/bblanchon/ArduinoJson/blob/$TAG/CHANGELOG.md)
END