]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/xonotic-map-compiler-autobuild
another chdir
[xonotic/xonotic.git] / misc / tools / xonotic-map-compiler-autobuild
index 6e8b9802d0755f9adea6ad6b26c78fd45aae972c..23c7dca547a7ace6dfcd407b6dd0a47d694d3a6a 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)
-               cd data/xonotic-maps.pk3dir
                runmakeindex > branches.idx.new
                rsync -vaSHP "$branches.idx.new" "$url_ssh""branches.idx.new"
                rm -f branches.idx.new
+               cd data/xonotic-maps.pk3dir
                branches | while read -r HASH TYPE REFNAME; do
                        if [ -f "$screenshot_cachedir/$HASH" ]; then
                                continue
@@ -320,8 +321,9 @@ case "$1" in
                        fi
 
                        cd data/xonotic-maps.pk3dir
-
                        allmaps "$HASH" screenshotthemap "$REFNAME" "$url_http"
+                       cd ../..
+
                        touch "$screenshot_cachedir/$HASH"
                done
                git checkout -f master