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