fix index file name
[xonotic/xonotic.git] / misc / tools / xonotic-map-compiler-autobuild
index 23c7dca547a7ace6dfcd407b6dd0a47d694d3a6a..e268a512aac4729a4631b1417983863af6283fe6 100755 (executable)
@@ -306,9 +306,9 @@ 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
+               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