From e239fa1aa99e7089a45239eef34d2ec13b1da25f Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Thu, 9 Dec 2021 20:09:55 +0800 Subject: [PATCH] =?UTF-8?q?V6.8.1=20=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E4=B8=8B=E8=BD=BD=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/AutoUpdate.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Scripts/AutoUpdate.sh b/Scripts/AutoUpdate.sh index e7a43d0..a4fd348 100755 --- a/Scripts/AutoUpdate.sh +++ b/Scripts/AutoUpdate.sh @@ -3,7 +3,7 @@ # AutoUpdate for Openwrt # Dependences: wget-ssl/wget/uclient-fetch curl jq expr sysupgrade -Version=V6.8.0 +Version=V6.8.1 function TITLE() { clear && echo "Openwrt-AutoUpdate Script by Hyy2001 ${Version}" @@ -585,7 +585,7 @@ function UPGRADE() { Special_Commands="${Special_Commands} [镜像加速 ${Proxy_Type}]" ;; -D) - DL_DEPENDS[@]="$2" + DL_DEPENDS=($2) Special_Commands="${Special_Commands} [$1 ${DL_DEPENDS[@]}]" shift ;; @@ -1084,8 +1084,8 @@ function AutoUpdate_Main() { ;; -D) case "${Input[$((${E} + 1))]}" in - wget | curl | wget-ssl | uclient-fetch) - DL_DEPENDS[@]=${Input[$((${E} + 1))]} + wget* | curl | uclient-fetch) + DL_DEPENDS=(${Input[$((${E} + 1))]}) ;; *) ECHO r "暂不支持当前下载器: [${Input[$((${E} + 1))]}]"