From 93fc58484e0aedf13ffa8b842a0c96906cad41e6 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 5 Oct 2010 14:09:26 +0200 Subject: [PATCH] build index at a better place; fix exit code --- misc/tools/xonotic-map-compiler-autobuild | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/misc/tools/xonotic-map-compiler-autobuild b/misc/tools/xonotic-map-compiler-autobuild index 173f1937..6e8b9802 100755 --- a/misc/tools/xonotic-map-compiler-autobuild +++ b/misc/tools/xonotic-map-compiler-autobuild @@ -306,6 +306,9 @@ case "$1" in ;; 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 branches | while read -r HASH TYPE REFNAME; do if [ -f "$screenshot_cachedir/$HASH" ]; then continue @@ -322,9 +325,6 @@ case "$1" in touch "$screenshot_cachedir/$HASH" done git checkout -f master - runmakeindex > branches.idx.new - rsync -vaSHP "$branches.idx.new" "$url_ssh""branches.idx.new" - rm -f branches.idx.new ;; makeindex) runmakeindex @@ -332,7 +332,7 @@ case "$1" in download) rundownload echo "List of maps that got deleted (if any) and currently are in $bspdir.old:" - ls -l "$bspdir.old" + ls -l "$bspdir.old" || true ;; download-latest) mkdir -p "$bspdir" -- 2.39.2