From 34f72cabfb84135995fe74ae71bb9cb6d85228e0 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 2 Apr 2011 13:02:16 +0200 Subject: [PATCH] mirrorselection: handle errors better --- all | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/all b/all index ae5a06af..1685f362 100755 --- a/all +++ b/all @@ -379,6 +379,7 @@ bestmirror() suf=$1; shift if ! { time -p true; } >/dev/null 2>&1; then + msg "Cannot do timing in this shell" return 1 fi @@ -546,7 +547,6 @@ case "$cmd" in case "$location" in current) if [ x"`git config xonotic.all.mirrorselection 2>/dev/null || true`" != x"done" ]; then - git config xonotic.all.mirrorselection done location=best fi ;; @@ -564,7 +564,7 @@ case "$cmd" in case "$newbase" in *\ *) if location=`bestmirror $newbase"xonotic.git" de us nl:'*6/5'`; then # 20% malus to the NL server to not overload it too much - : + git config xonotic.all.mirrorselection done else location=current fi -- 2.39.2