mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-05 15:42:45 +00:00
auto set GHPROXY for china user
This commit is contained in:
parent
60bcee8c1d
commit
8d676013b0
6
acme.sh
6
acme.sh
@ -6,7 +6,11 @@ PROJECT_NAME="acme.sh"
|
||||
|
||||
PROJECT_ENTRY="acme.sh"
|
||||
|
||||
PROJECT="https://github.com/acmesh-official/$PROJECT_NAME"
|
||||
if ! curl -I --connect-timeout 1 -m 3 -s https://t.co > /dev/null ;then
|
||||
GHPROXY=https://ghproxy.com/
|
||||
fi
|
||||
|
||||
PROJECT="${GHPROXY}https://github.com/acmesh-official/$PROJECT_NAME"
|
||||
|
||||
DEFAULT_INSTALL_HOME="$HOME/.$PROJECT_NAME"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user