OSDN Git Service

oops, check if we have the file
authorRudolf Polzer <divverent@xonotic.org>
Fri, 15 Jul 2011 08:22:39 +0000 (10:22 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Fri, 15 Jul 2011 08:22:39 +0000 (10:22 +0200)
tests/test.sh

index a140a83..22ccf2c 100644 (file)
@@ -172,7 +172,9 @@ html_start
 xon()
 {
        # downloads a texture from Xonotic
-       wget -qO- "http://git.xonotic.org/?p=xonotic/xonotic-maps.pk3dir.git;a=blob;f=$1" | convert TGA:- -geometry 512x512 "$2"
+       if ! [ -f "$2" ]; then
+               wget -qO- "http://git.xonotic.org/?p=xonotic/xonotic-maps.pk3dir.git;a=blob;f=$1" | convert TGA:- -geometry 512x512 "$2"
+       fi
 }
 # floor_tread01: GPLv2+
 xon textures/exx/floor/floor_tread01.tga floor-tread01.tga