fix duplicate projects subpath (#371)

`CURSE_URL_BASE` already had `/projects` appended to it, missed it by mistake
This commit is contained in:
Tyler Page 2019-08-03 12:47:41 +00:00 committed by Geoff Bourne
parent 19e39b84ec
commit f02baa8761

View file

@ -89,7 +89,7 @@ case "X$EFFECTIVE_MANIFEST_URL" in
do do
if [ ! -f $MOD_DIR/${p}_${f}.jar ] if [ ! -f $MOD_DIR/${p}_${f}.jar ]
then then
redirect_url="$(curl -Ls -o /dev/null -w %{url_effective} ${CURSE_URL_BASE}/projects/${p})" redirect_url="$(curl -Ls -o /dev/null -w %{url_effective} ${CURSE_URL_BASE}/${p})"
url="$redirect_url/download/${f}/file" url="$redirect_url/download/${f}/file"
echo Downloading curseforge mod $url echo Downloading curseforge mod $url
# Manifest usually doesn't have mod names. Using id should be fine, tho # Manifest usually doesn't have mod names. Using id should be fine, tho