From cfc585184aecf405ea3e8e591050b7d1db9bb12b Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Tue, 22 Nov 2022 19:32:28 -0600 Subject: [PATCH] Use HTTP accept when downloading CF modpack --- scripts/start-deployCF | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/start-deployCF b/scripts/start-deployCF index f94ba3fa269..2dc2812d82b 100755 --- a/scripts/start-deployCF +++ b/scripts/start-deployCF @@ -42,7 +42,7 @@ downloadModpack() { srv_modpack=${FTB_SERVER_MOD} if isURL "${srv_modpack}"; then log "Downloading modpack from ${srv_modpack}..." - if ! srv_modpack=$(get -o /data --output-filename --skip-existing "${srv_modpack}"); then + if ! srv_modpack=$(get -o /data --output-filename --skip-existing --accept=application/zip "${srv_modpack}"); then log "ERROR: failed to download modpack" exit 1 fi @@ -59,11 +59,6 @@ downloadModpack() { log "FTB server modpack ${srv_modpack} not found." exit 2 fi - if [[ ! "${srv_modpack: -4}" == ".zip" ]]; then - log "FTB server modpack ${srv_modpack} is not a zip archive." - log "Please set FTB_SERVER_MOD to a file with a .zip extension." - exit 2 - fi FTB_SERVER_MOD=${srv_modpack} }