From 10d254bbbc91a18ac89c09cb74d7e2e88d7a0e12 Mon Sep 17 00:00:00 2001 From: avionix-g <63542699+avionix-g@users.noreply.github.com> Date: Mon, 27 Sep 2021 07:53:56 -0400 Subject: [PATCH] Fix 'curl: unknown --write-out variable' for .zip modpacks (#1060) --- start-setupModpack | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start-setupModpack b/start-setupModpack index a037b8f2..92cb9811 100755 --- a/start-setupModpack +++ b/start-setupModpack @@ -22,7 +22,7 @@ if [[ "$MODPACK" ]]; then if [[ "${MODPACK}" == *.zip ]]; then downloadUrl="${MODPACK}" else - downloadUrl=$(curl -Ls -o /dev/null -w %{effective_url} $MODPACK) + downloadUrl=$(curl -Ls -o /dev/null -w %{url_effective} $MODPACK) if ! [[ $downloadUrl == *.zip ]]; then log "ERROR Invalid URL given for MODPACK: $downloadUrl resolved from $MODPACK" log " Must be HTTP, HTTPS or FTP and a ZIP file"