summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorruki <[email protected]>2024-11-13 23:34:34 +0800
committerruki <[email protected]>2024-11-13 23:34:34 +0800
commitc7705202fa335d22dd822ca302d379a798b85c57 (patch)
tree288cd902f5dfd4ab2a5151689fbbf92b1ffc46c6 /scripts
parent4fc4ffb51e5c346a4bce3d32b95584a58a75b553 (diff)
update get.sh
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/scripts/get.sh b/scripts/get.sh
index b782559e9..d3bdb7072 100755
--- a/scripts/get.sh
+++ b/scripts/get.sh
@@ -111,13 +111,14 @@ get_host_speed() {
get_fast_host() {
if test_eq "$GITHUB_ACTIONS" "true" || test_eq "$GITHUB_ACTIONS" "1"; then
echo "github.com"
- fi
- speed_gitee=$(get_host_speed "gitee.com")
- speed_github=$(get_host_speed "github.com")
- if [ $speed_gitee -le $speed_github ]; then
- echo "gitee.com"
else
- echo "github.com"
+ speed_gitee=$(get_host_speed "gitee.com")
+ speed_github=$(get_host_speed "github.com")
+ if [ $speed_gitee -le $speed_github ]; then
+ echo "gitee.com"
+ else
+ echo "github.com"
+ fi
fi
}