now that we HAVE an official map, we can get rid of the ???????????????-????????...
authorRudolf Polzer <divverent@alientrap.org>
Wed, 4 Aug 2010 07:06:05 +0000 (09:06 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 4 Aug 2010 07:06:05 +0000 (09:06 +0200)
misc/tools/xonotic-map-compiler-autobuild

index dcce6abc577abc4bf2381b103f96f43753b284c1..8f3f4aa0539ef84828a91b50378b0cd3bee7ecb2 100755 (executable)
@@ -180,7 +180,11 @@ case "$1" in
                ;;
        download)
                mkdir -p "$bspdir" "$bspdir.old"
-               mv "$bspdir"/*-????????????????????????????????????????-????????????????????????????????????????.pk3 "$bspdir.old"/ || true
+               for b in "$bspdir"/*-????????????????????????????????????????-????????????????????????????????????????.pk3; do
+                       if [ -e "$b" ]; then
+                               mv "$b" "$bspdir.old"/
+                       fi
+               done
                cd data/xonotic-maps.pk3dir
                allmaps getthemap "$url" "$bspdir.old" "$bspdir"
                echo "List of maps that got deleted (if any) and currently are in $bspdir.old:"