mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-04-16 18:48:52 +00:00
Update start-finalSetup02Modpack (#368)
Fixed curseforge redirect so it actually downloads the JAR file, not an HTML page
This commit is contained in:
@@ -89,7 +89,8 @@ case "X$EFFECTIVE_MANIFEST_URL" in
|
||||
do
|
||||
if [ ! -f $MOD_DIR/${p}_${f}.jar ]
|
||||
then
|
||||
url="${CURSE_URL_BASE}/${p}/files/${f}/download"
|
||||
redirect_url="$(curl -Ls -o /dev/null -w %{url_effective} ${CURSE_URL_BASE}/projects/${p})"
|
||||
url="$redirect_url/download/${f}/file"
|
||||
echo Downloading curseforge mod $url
|
||||
# Manifest usually doesn't have mod names. Using id should be fine, tho
|
||||
curl -sSL "${url}" -o $MOD_DIR/${p}_${f}.jar
|
||||
|
||||
Reference in New Issue
Block a user