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 <