mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-14 22:32:28 +00:00
Fix 'curl: unknown --write-out variable' for .zip modpacks (#1060)
This commit is contained in:
parent
8acb3f8a90
commit
10d254bbbc
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ if [[ "$MODPACK" ]]; then
|
||||||
if [[ "${MODPACK}" == *.zip ]]; then
|
if [[ "${MODPACK}" == *.zip ]]; then
|
||||||
downloadUrl="${MODPACK}"
|
downloadUrl="${MODPACK}"
|
||||||
else
|
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
|
if ! [[ $downloadUrl == *.zip ]]; then
|
||||||
log "ERROR Invalid URL given for MODPACK: $downloadUrl resolved from $MODPACK"
|
log "ERROR Invalid URL given for MODPACK: $downloadUrl resolved from $MODPACK"
|
||||||
log " Must be HTTP, HTTPS or FTP and a ZIP file"
|
log " Must be HTTP, HTTPS or FTP and a ZIP file"
|
||||||
|
|
Loading…
Reference in a new issue