From 9d9e3be18acd7e0a69f65f38f6ad1e2748817ffe Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Wed, 23 Jun 2021 13:55:52 +0800 Subject: [PATCH] =?UTF-8?q?V6.2.2=20=E5=9B=BA=E4=BB=B6=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20ghproxy=20=E9=95=9C=E5=83=8F=E5=8A=A0?= =?UTF-8?q?=E9=80=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/AutoUpdate.sh | 88 +++++++++++++++++++++---------------------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/Scripts/AutoUpdate.sh b/Scripts/AutoUpdate.sh index 861f7c4..b10ea54 100755 --- a/Scripts/AutoUpdate.sh +++ b/Scripts/AutoUpdate.sh @@ -56,24 +56,25 @@ SHOW_VARIABLE() { cat < /tmp/Cloud_Version TIME r "检查更新失败,请稍后重试!" @@ -349,7 +349,7 @@ PREPARE_UPGRADES() { } [[ $1 == -P || $1 == --proxy ]] && { Proxy_Mode=1 - Proxy_Echo="[FastGit] " + Proxy_Echo="[Proxy] " } [[ $1 =~ path= ]] && { [[ -z $(echo $1 | cut -d "=" -f2) ]] && TIME r "固件保存目录不能为空!" && EXIT 1 @@ -389,7 +389,7 @@ PREPARE_UPGRADES() { MSG_2=" [强制刷写]" Upgrade_Option="${Upgrade_Option} -F" } - [[ $Test_Mode == 1 ]] && Wget_Head="wget --no-check-certificate" + [[ ${Test_Mode} == 1 ]] && Downloader="wget --no-check-certificate --timeout 5" TIME g "执行: ${Proxy_Echo}${MSG}${TAIL_MSG}${MSG_2}" if [[ $(CHECK_PKG curl) == true && ${Proxy_Mode} == 0 ]];then Google_Check=$(curl -I -s --connect-timeout 3 google.com -w %{http_code} | tail -n1) @@ -404,8 +404,8 @@ PREPARE_UPGRADES() { EXIT 1 } [[ ${Proxy_Mode} == 1 ]] && { - FW_URL="${FW_Proxy_URL}" - } || FW_URL="${FW_NoProxy_URL}" + FW_URL="${Release_FastGit_URL}" + } || FW_URL="${Release_URL}" cat <