Skip to content

Commit

Permalink
Make changelog builder able to deal with special characters
Browse files Browse the repository at this point in the history
The last time something went wrong with building the metadata file because there was an & in it.
  • Loading branch information
sharkwouter authored Jan 20, 2024
1 parent 759382b commit 6fd7258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/create-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ init_metadata() {
add_metadata_entry() {
xmlstarlet ed -L \
-s /component/releases/release[@version="'$VERSION'"]/description/ul \
-t elem -n li -v "$(echo $@|sed 's/^- //')" \
-t elem -n li -v "$(echo $@|sed 's/^- //'|sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'"'"'/\&#39;/g')" \
"${METADATA_FILE}"
}

Expand Down

0 comments on commit 6fd7258

Please sign in to comment.