From: bones_was_here Date: Sat, 21 Mar 2020 05:54:44 +0000 (+1000) Subject: Enable http redirects for curl and request https for beta.xonotic.org X-Git-Tag: xonotic-v0.8.5~96^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c19fb6c4f56c5156406cbffd3873417c073d1283;p=xonotic%2Fxonotic.git Enable http redirects for curl and request https for beta.xonotic.org --- diff --git a/misc/tools/xonotic-map-compiler-autobuild b/misc/tools/xonotic-map-compiler-autobuild index f8f34552..0cfb0579 100755 --- a/misc/tools/xonotic-map-compiler-autobuild +++ b/misc/tools/xonotic-map-compiler-autobuild @@ -3,7 +3,7 @@ set -e bspdir="$PWD/data" -url_http=http://beta.xonotic.org/autobuild-bsp/ +url_http=https://beta.xonotic.org/autobuild-bsp/ url_ssh=xonotic-beta:autobuild-bsp/ build_cachedir="$HOME/xonotic-map-compiler.cache/" screenshot_cachedir="$HOME/xonotic-map-screenshot.cache/" @@ -308,7 +308,7 @@ getthemap() fi fi if ! wget -c -O "$bspdir/$M-$blobhash.pk3" "$url$M-$blobhash.pk3"; then - if ! curl -o "$bspdir/$M-$blobhash.pk3" "$url$M-$blobhash.pk3"; then + if ! curl -Lo "$bspdir/$M-$blobhash.pk3" "$url$M-$blobhash.pk3"; then rm -f "$bspdir/$M-$blobhash.pk3" echo "WARNING: could not download $url$M-$blobhash.pk3, maybe not ready yet" return 0