]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
Enable http redirects for curl and request https for beta.xonotic.org 64/head
authorbones_was_here <bones_was_here@yahoo.com.au>
Sat, 21 Mar 2020 05:54:44 +0000 (15:54 +1000)
committerbones_was_here <bones_was_here@yahoo.com.au>
Sat, 21 Mar 2020 05:54:44 +0000 (15:54 +1000)
misc/tools/xonotic-map-compiler-autobuild

index f8f3455206619a2b1c5ac3a5ca8b95154bd9e9dd..0cfb057922ff7401190bd2392bf36e4259c935e6 100755 (executable)
@@ -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