From 0cb8bc2d720264a4ef7096a489dc8cb34f74cc56 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Kr=C3=BCger?= Date: Fri, 10 Mar 2017 12:31:49 +0100 Subject: [PATCH] ./all update-maps: suppress warnings from verious tools if we fail to download map pk3. --- misc/tools/xonotic-map-compiler-autobuild | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/misc/tools/xonotic-map-compiler-autobuild b/misc/tools/xonotic-map-compiler-autobuild index bbcedec0..5c6c71ed 100755 --- a/misc/tools/xonotic-map-compiler-autobuild +++ b/misc/tools/xonotic-map-compiler-autobuild @@ -295,20 +295,20 @@ getthemap() M=$4 blobhash=$5 commithash=$6 - if mv "$bspdir_old/$M-$blobhash.pk3" "$bspdir/$M-$blobhash.pk3"; then + if mv "$bspdir_old/$M-$blobhash.pk3" "$bspdir/$M-$blobhash.pk3" >& /dev/null; then if unzip -l "$bspdir/$M-$blobhash.pk3" >/dev/null 2>&1; then return 0 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 - rm -f "$bspdir/$M-$blobhash.pk3" + if ! wget -c -O "$bspdir/$M-$blobhash.pk3" "$url$M-$blobhash.pk3" >& /dev/null; then + if ! curl -o "$bspdir/$M-$blobhash.pk3" "$url$M-$blobhash.pk3" >& /dev/null; then + rm -f "$bspdir/$M-$blobhash.pk3" >& /dev/null echo "WARNING: could not download $url$M-$blobhash.pk3, maybe not ready yet" getthemap_fail=true return 0 fi fi - if ! unzip -l "$bspdir/$M-$blobhash.pk3"; then + if ! unzip -l "$bspdir/$M-$blobhash.pk3" >& /dev/null; then rm -f "$bspdir/$M-$blobhash.pk3" echo "WARNING: could not download $url$M-$blobhash.pk3, invalid zip file" getthemap_fail=true -- 2.39.2