From 24b2ad5133f0c11844aa68ba59f30a63329edd89 Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Thu, 24 Jun 2021 20:20:27 +0800 Subject: [PATCH] =?UTF-8?q?V6.2.6=20=E4=BC=98=E5=85=88=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=20wget-ssl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/AutoUpdate.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Scripts/AutoUpdate.sh b/Scripts/AutoUpdate.sh index d4ce84b..08ee886 100755 --- a/Scripts/AutoUpdate.sh +++ b/Scripts/AutoUpdate.sh @@ -547,12 +547,6 @@ AutoUpdate_Main() { [[ ! -f ${Custom_Variable} ]] && touch ${Custom_Variable} LOAD_VARIABLE ${Default_Variable} ${Custom_Variable} - [[ $(CHECK_PKG uclient-fetch) == true ]] && { - Downloader="uclient-fetch -q --no-check-certificate --timeout 5" - } || { - Downloader="wget -q --no-check-certificate --timeout 5" - } - [[ -z $* ]] && PREPARE_UPGRADES $* [[ $1 =~ path= && ! $* =~ -x && ! $* =~ -U ]] && PREPARE_UPGRADES $* @@ -702,7 +696,7 @@ AutoUpdate_Main() { done } -Version=V6.2.5 +Version=V6.2.6 log_Path=/tmp Update_Logs_Path=/tmp Upgrade_Command=sysupgrade @@ -716,4 +710,10 @@ Blue="\e[34m" Grey="\e[36m" Green="\e[32m" +if [[ $(CHECK_PKG wget-ssl) == true ]];then + Downloader="wget-ssl -q --no-check-certificate -T 5 --tries 1 --no-dns-cache -x" +else + Downloader="uclient-fetch -q --no-check-certificate --timeout 5" +fi + AutoUpdate_Main $* \ No newline at end of file