]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/xonotic-map-compiler-autobuild
xonotic autobuild downloader: add the base scripts
[xonotic/xonotic.git] / misc / tools / xonotic-map-compiler-autobuild
index 2810ff8f3834bbc7728fa074d02fd7f927ebaea9..cede0a22d83cbdf41804b996a86bbd83f5256502 100755 (executable)
@@ -357,7 +357,10 @@ case "$1" in
                runmakeindex
                ;;
        download)
-               cd data/xonotic-maps.pk3dir
+               if ! cd data/xonotic-maps.pk3dir >/dev/null 2>&1; 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:"