From 3dbc51d6d9b3d4b3ff6fd4adb020edf4ad15254a Mon Sep 17 00:00:00 2001 From: merlijn Date: Tue, 24 Aug 2010 19:32:59 +0200 Subject: [PATCH] add curl as a backup for wget, needed on OSX --- misc/tools/xonotic-map-compiler-autobuild | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/misc/tools/xonotic-map-compiler-autobuild b/misc/tools/xonotic-map-compiler-autobuild index c2d7fe6b..9e218f8f 100755 --- a/misc/tools/xonotic-map-compiler-autobuild +++ b/misc/tools/xonotic-map-compiler-autobuild @@ -154,9 +154,11 @@ getthemap() continue fi if ! wget -O "$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 + if ! curl -o "$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 + fi fi if ! unzip -l "$bspdir/$M-$blobhash.pk3"; then rm -f "$bspdir/$M-$blobhash.pk3" -- 2.39.2