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