mirror of
https://github.com/alibaba/arthas.git
synced 2026-11-30 07:32:57 +00:00
when timezone is +0800, default repo mirror is aliyun. #452
This commit is contained in:
1 parent
5c857d045a
commit
64439540bb
2 files changed
+21
-3
No files matched your search
@@ -42,7 +42,7 @@ SESSION_TIMEOUT=300
|
||||
USE_VERSION=
|
||||
|
||||
# maven repo to download arthas
|
||||
REPO_MIRROR="center"
|
||||
REPO_MIRROR=
|
||||
|
||||
# use http to download arthas
|
||||
USE_HTTP=false
|
||||
@@ -580,6 +580,13 @@ parse_arguments()
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z ${REPO_MIRROR} ]; then
|
||||
REPO_MIRROR="center"
|
||||
# if timezone is +0800, set REPO_MIRROR to aliyun
|
||||
if [[ -x "$(command -v date)" ]] && [[ $(date +%z) == "+0800" ]]; then
|
||||
REPO_MIRROR="aliyun"
|
||||
fi
|
||||
fi
|
||||
|
||||
# check pid
|
||||
if [ -z ${TARGET_PID} ] && [ ${BATCH_MODE} = false ]; then
|
||||
|
||||
Reference in new issue
Block a user