Skip to content

Commit

Permalink
cloudflare.curseforge.com -> www.curseforge.com
Browse files Browse the repository at this point in the history
  • Loading branch information
nebularg committed Jan 17, 2025
1 parent e98c876 commit aaf85f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,7 @@ fi
echo
)
if [[ "$slug" =~ ^[0-9]+$ ]]; then
project_site="https://cloudflare.curseforge.com"
project_site="https://www.curseforge.com"
echo "CurseForge ID: $slug${cf_token:+ [token set]}"
fi
if [ -n "$addonid" ]; then
Expand Down Expand Up @@ -2075,7 +2075,7 @@ checkout_external() {
project_site=
package=
if [[ "$_external_uri" == *"wowace.com"* || "$_external_uri" == *"curseforge.com"* ]]; then
project_site="https://cloudflare.curseforge.com"
project_site="https://www.curseforge.com"
fi

# If a .pkgmeta file is present, process it for "ignore" and "plain-copy" lists.
Expand Down Expand Up @@ -2564,7 +2564,7 @@ fi

if [[ -n "$license" && ! -f "$topdir/$license" && -n "$slug" ]]; then
start_group "Saving license as $license" "license"
# curseforge.com is protected by cloudflare, but wowace.com isn't? >.>
# this only exists on wowace.com now
if license_text=$( curl -sf --retry 3 --retry-delay 10 "https://www.wowace.com/project/$slug/license" 2>/dev/null ); then
# text is wrapped with \n\n<div class="module">\n\t<p>\n\t\t ... \n\t</p>\n</div>\n
echo "$license_text" | sed -e '1,4d' -e '5s/^\s*//' -e '$d' | sed '$d' > "$pkgdir/$license"
Expand Down

0 comments on commit aaf85f6

Please sign in to comment.