mirror of
https://gitlab.com/xonotic/xonotic
synced 2024-12-14 19:05:09 +00:00
cleanup more (don't change mirror if no mirror selection possible)
This commit is contained in:
parent
8743a68010
commit
62c00cf9b9
32
all
32
all
@ -499,6 +499,23 @@ case "$cmd" in
|
||||
fi
|
||||
shift
|
||||
done
|
||||
case "$location" in
|
||||
best)
|
||||
newbase=`echo "$base" | sed "s,://\(.*\.\)\?git.xonotic.org/,:// .git.xonotic.org/,"`
|
||||
case "$newbase" in
|
||||
*\ *)
|
||||
if location=`bestmirror $newbase"xonotic.git" de nl`; then
|
||||
:
|
||||
else
|
||||
location=current
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
location=current
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
case "$location" in
|
||||
default)
|
||||
location=
|
||||
@ -514,21 +531,6 @@ case "$cmd" in
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
best)
|
||||
base=`echo "$base" | sed "s,://\(.*\.\)\?git.xonotic.org/,:// .git.xonotic.org/,"`
|
||||
case "$base" in
|
||||
*\ *)
|
||||
if location=`bestmirror $base"xonotic.git" de nl`; then
|
||||
:
|
||||
else
|
||||
location=
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
location=
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
if [ -n "$location" ]; then
|
||||
base=`echo "$base" | sed "s,://\(.*\.\)\?git.xonotic.org/,://$location.git.xonotic.org/,"`
|
||||
|
Loading…
Reference in New Issue
Block a user