]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
./all update-maps: check for unzip
authorRudolf Polzer <divverent@xonotic.org>
Sat, 28 Jul 2012 10:28:44 +0000 (12:28 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 28 Jul 2012 10:28:44 +0000 (12:28 +0200)
misc/tools/xonotic-map-compiler-autobuild

index 5884e65c80db0782795bb2e9e5db24b2fc8b9336..0ef0c1fe2d911a42ba46cdf82a1915bdef65f974 100755 (executable)
@@ -361,6 +361,10 @@ case "$1" in
                runmakeindex
                ;;
        download)
+               if ! which unzip >/dev/null 2>&1; then
+                       echo "Cannot find unzip, bailing out"
+                       exit 1
+               fi
                if ! cd data/xonotic-maps.pk3dir >/dev/null 2>&1; then
                        echo "data/xonotic-maps.pk3dir does not exist, not downloading"
                        exit 0