From ca13e8ad7713699b108bed8667dc452b2863c02c Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 18 Feb 2023 22:46:05 +0800 Subject: [PATCH] Update install_dev.sh --- scripts/install_dev.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install_dev.sh b/scripts/install_dev.sh index 824c854a9..6ceac93d3 100755 --- a/scripts/install_dev.sh +++ b/scripts/install_dev.sh @@ -84,8 +84,8 @@ if [ $OSNAME != "macos" ];then # install acme.sh if [ ! -d /root/.acme.sh ];then - if [ ! -z "$cn" ];then - curl -sSL -o /tmp/acme.tar.gz https://ghproxy.com/github.com/acmesh-official/acme.sh/archive/master.tar.gz + if [ "$HTTP_PREFIX" == "https://ghproxy.com/" ];then + curl -sSL -o /tmp/acme.tar.gz ${HTTP_PREFIX}github.com/acmesh-official/acme.sh/archive/master.tar.gz tar xvzf /tmp/acme.tar.gz -C /tmp cd /tmp/acme.sh-master bash acme.sh install