]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/xonotic-map-compiler-autobuild
fix index file name
[xonotic/xonotic.git] / misc / tools / xonotic-map-compiler-autobuild
index 86ecb4a37845684bc33414cc81ad2cd1cb16f48b..e268a512aac4729a4631b1417983863af6283fe6 100755 (executable)
@@ -290,6 +290,7 @@ runmakeindex()
        branches | while read -r HASH TYPE REFNAME; do
                allmaps "$HASH" indexthemap "$REFNAME"
        done
+       cd ../..
 }
 
 case "$1" in
@@ -305,10 +306,10 @@ case "$1" in
                git checkout -f master
                ;;
        screenshot)
+               runmakeindex > "branches.idx.new"
+               rsync -vaSHP "branches.idx.new" "$url_ssh""branches.idx.new"
+               rm -f "branches.idx.new"
                cd data/xonotic-maps.pk3dir
-               runmakeindex > branches.idx.new
-               rsync -vaSHP "$branches.idx.new" "$url_ssh""branches.idx.new"
-               rm -f branches.idx.new
                branches | while read -r HASH TYPE REFNAME; do
                        if [ -f "$screenshot_cachedir/$HASH" ]; then
                                continue