Skip to content

Commit

Permalink
Revert toc title parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
nebularg committed Mar 8, 2024
1 parent 0ee9a5d commit b4c46d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ set_toc_project_info() {
local toc_path="$1"
# Get the title of the addon for the changelog
if [ -z "$project" ]; then
project=$( sed -e $'1s/^\xEF\xBB\xBF//' -e $'s/\r//g' "$toc_path" | awk -F: '/^## Title:/ { gsub(/^[[:blank:]]+|[[:blank:]]+$/, "", $2); print $2; exit }' | sed -e 's/|c[0-9A-Fa-f]\{8\}//g' -e 's/|r//g' -e 's/|T[^|]*|t//g' )
project=$( sed -e $'1s/^\xEF\xBB\xBF//' -e $'s/\r//g' "$toc_path" | awk '/^## Title:/ { print $0; exit }' | sed -e 's/|c[0-9A-Fa-f]\{8\}//g' -e 's/|r//g' -e 's/|T[^|]*|t//g' -e 's/## Title[[:space:]]*:[[:space:]]*\(.*\)/\1/' -e 's/[[:space:]]*$//' )
fi
# Get project IDs for uploading
if [ -z "$slug" ]; then
Expand Down

0 comments on commit b4c46d3

Please sign in to comment.