tDownload maps from http://ws.q3df.org - scripts - various script and utils
 (HTM) git clone git://z3bra.org/scripts
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit 10613b7b74d59afe7f054ba66b0ed20b775a68ea
 (DIR) parent b2f4c41b206183ba8c337c733bd2bb02c9895c14
 (HTM) Author: z3bra <willy@mailoo.org>
       Date:   Wed, 26 Mar 2014 19:41:55 +0100
       
       Download maps from http://ws.q3df.org
       
       Diffstat:
         A q3dl                                |      23 +++++++++++++++++++++++
       
       1 file changed, 23 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/q3dl b/q3dl
       t@@ -0,0 +1,23 @@
       +#!/bin/sh
       +
       +q3df='http://ws.q3df.org/maps/downloads'
       +map=$1
       +
       +W="\033[1;37m"
       +R="\033[1;31m"
       +G="\033[1;32m"
       +N="\033[0m"
       +
       +echo -ne "Fetching map ${W}${map}.pk3 ${N}.. "
       +
       +curl -s "${q3df}/${map}.pk3" > /tmp/q3map.zip
       +
       +if unzip -p /tmp/q3map.zip >/dev/null 2>&1 ; then
       +    mv /tmp/q3map.zip ~/.q3a/baseq3/${map}.pk3
       +    echo -e "[${G}DONE${N}]"
       +else
       +    echo -e "[${R}FAIL${N}]"
       +    rm /tmp/q3map.zip
       +fi
       +
       +exit 0