From 578fa62c848ed81888ad9499c559eecad7ae5ef2 Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 20 Nov 2022 13:25:42 +0800 Subject: [PATCH] up --- scripts/install.sh | 4 ++-- scripts/update.sh | 4 ++-- scripts/update_dev.sh | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index e8f123ade..fe61884a4 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -76,9 +76,9 @@ if [ $OSNAME != "macos" ];then cn=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"") if [ ! -z "$cn" ];then - wget -O /tmp/master.zip https://gitee.com/midoks/mdserver-web/repository/archive/master.zip + curl -sSLo /tmp/master.zip https://gitee.com/midoks/mdserver-web/repository/archive/master.zip else - wget -O /tmp/master.zip https://codeload.github.com/midoks/mdserver-web/zip/master + curl -sSLo /tmp/master.zip https://codeload.github.com/midoks/mdserver-web/zip/master fi cd /tmp && unzip /tmp/master.zip diff --git a/scripts/update.sh b/scripts/update.sh index d5ddd6d7a..c41ee6f49 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -52,9 +52,9 @@ fi cn=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"") if [ ! -z "$cn" ];then - wget -O /tmp/master.zip https://gitee.com/midoks/mdserver-web/repository/archive/master.zip + curl -sSLo /tmp/master.zip https://gitee.com/midoks/mdserver-web/repository/archive/master.zip else - wget -O /tmp/master.zip https://codeload.github.com/midoks/mdserver-web/zip/master + curl -sSLo /tmp/master.zip https://codeload.github.com/midoks/mdserver-web/zip/master fi diff --git a/scripts/update_dev.sh b/scripts/update_dev.sh index 4e030abbf..0fa062b31 100755 --- a/scripts/update_dev.sh +++ b/scripts/update_dev.sh @@ -51,9 +51,9 @@ fi cn=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"") if [ ! -z "$cn" ];then - wget -O /tmp/dev.zip https://gitee.com/midoks/mdserver-web/repository/archive/dev.zip + curl -sSLo /tmp/dev.zip https://gitee.com/midoks/mdserver-web/repository/archive/dev.zip else - wget -O /tmp/dev.zip https://github.com/midoks/mdserver-web/archive/refs/heads/dev.zip + curl -sSLo /tmp/dev.zip https://github.com/midoks/mdserver-web/archive/refs/heads/dev.zip fi # wget -O /tmp/dev.zip https://github.com/midoks/mdserver-web/archive/refs/heads/dev.zip