From: Rudolf Polzer Date: Thu, 8 Jul 2021 21:52:09 +0000 (+0200) Subject: Sync the update rsync script. X-Git-Tag: xonotic-v0.8.5~58 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fc95a413e75897d7f4f80ee10f0449c17e280c38;p=xonotic%2Fxonotic.git Sync the update rsync script. --- diff --git a/misc/infrastructure/update-rsync.sh b/misc/infrastructure/update-rsync.sh index bde13ebd..dbad1945 100755 --- a/misc/infrastructure/update-rsync.sh +++ b/misc/infrastructure/update-rsync.sh @@ -1,15 +1,22 @@ #!/bin/sh -set -x +set -ex d=$1 cd /var/rsync/autobuild -for BUILD in '' -low -lowdds; do +for BUILD in '' -high -mappingsupport; do + rm -rf .new mkdir .new cd .new - unzip /var/www/autobuild/Xonotic-"$d$BUILD".zip + if ! unzip ~/Xonotic-"$d$BUILD".zip; then + good=false + #for f in ~/Xonotic-"$d$BUILD".zip; do + # unzip "$f" && good=true && break + #done + $good + fi cd Xonotic/data for X in *"$d"*; do pre=${X%$d*} @@ -17,6 +24,7 @@ for BUILD in '' -low -lowdds; do mv "$X" "$pre"rsync"$post" done cd ../../.. + rm -rf Xonotic.old mv Xonotic"$BUILD" Xonotic.old || true mv .new/Xonotic Xonotic"$BUILD" rmdir .new