]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/xonotic-map-compiler-autobuild
more chdir
[xonotic/xonotic.git] / misc / tools / xonotic-map-compiler-autobuild
index 91626deaf0969682dab02b79efa36592ad7df49d..d19e79cde6f6f13950d46d865dde65c1ff54e6bd 100755 (executable)
@@ -280,9 +280,7 @@ rundownload()
                        mv "$b" "$bspdir.old"/
                fi
        done
-       cd data/xonotic-maps.pk3dir
        allmaps "HEAD" getthemap "$url_http" "$bspdir.old" "$bspdir"
-       cd ../..
 }
 
 branches()
@@ -326,9 +324,7 @@ case "$1" in
                                continue
                        fi
 
-                       cd data/xonotic-maps.pk3dir
                        allmaps "$HASH" screenshotthemap "$REFNAME" "$url_http"
-                       cd ../..
 
                        touch "$screenshot_cachedir/$HASH"
                done
@@ -338,7 +334,9 @@ case "$1" in
                runmakeindex
                ;;
        download)
+               cd data/xonotic-maps.pk3dir
                rundownload
+               cd ../..
                echo "List of maps that got deleted (if any) and currently are in $bspdir.old:"
                ls -l "$bspdir.old" || true
                ;;