[ci] Escape ampersand to avoid pattern substitution replacement [skip ci]

This is a new feature of bash 5.2...
See also shopt patsub_replacement
This commit is contained in:
Andreas Dangel 2022-09-30 16:04:15 +02:00
parent a9647edb63
commit d69a292d16
No known key found for this signature in database
GPG Key ID: 93450DF2DF9A3FA3

View File

@ -116,7 +116,7 @@ echo "* Days since last release: $(( ( $(date +%s) - $(git log --max-count=1 --f
)
TEMP_RELEASE_NOTES=$(cat docs/pages/release_notes.md)
TEMP_RELEASE_NOTES=${TEMP_RELEASE_NOTES/\{\% endtocmaker \%\}/$STATS$'\n'$'\n'\{\% endtocmaker \%\}$'\n'}
TEMP_RELEASE_NOTES=${TEMP_RELEASE_NOTES/\{\% endtocmaker \%\}/${STATS//\&/\\\&}$'\n'$'\n'\{\% endtocmaker \%\}$'\n'}
echo "${TEMP_RELEASE_NOTES}" > docs/pages/release_notes.md
echo