]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
xonotic-map-compiler-autobuild: don't abort the "download" action if xonotic-maps...
authorRudolf Polzer <divVerent@xonotic.org>
Fri, 8 Apr 2011 04:38:25 +0000 (06:38 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Fri, 8 Apr 2011 04:38:25 +0000 (06:38 +0200)
misc/tools/xonotic-map-compiler-autobuild

index 2810ff8f3834bbc7728fa074d02fd7f927ebaea9..0b5cd720e4671f04d8937b933df95d802f01bf1c 100755 (executable)
@@ -357,7 +357,10 @@ case "$1" in
                runmakeindex
                ;;
        download)
-               cd data/xonotic-maps.pk3dir
+               if ! cd data/xonotic-maps.pk3dir; then
+                       echo "data/xonotic-maps.pk3dir does not exist, not downloading"
+                       exit 0
+               fi
                rundownload
                cd ../..
                echo "List of maps that got deleted (if any) and currently are in $bspdir.old:"