From 00ee5385d3bc7245f3e81754c47180947bd4c422 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 15 Jul 2011 10:22:39 +0200 Subject: [PATCH] oops, check if we have the file --- tests/test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test.sh b/tests/test.sh index a140a83..22ccf2c 100644 --- a/tests/test.sh +++ b/tests/test.sh @@ -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 -- 2.11.0