V6.8.1 修复自定义下载器

This commit is contained in:
Hyy2001X 2021-12-09 20:09:55 +08:00
parent 4415901bf8
commit e239fa1aa9
1 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
# AutoUpdate for Openwrt # AutoUpdate for Openwrt
# Dependences: wget-ssl/wget/uclient-fetch curl jq expr sysupgrade # Dependences: wget-ssl/wget/uclient-fetch curl jq expr sysupgrade
Version=V6.8.0 Version=V6.8.1
function TITLE() { function TITLE() {
clear && echo "Openwrt-AutoUpdate Script by Hyy2001 ${Version}" clear && echo "Openwrt-AutoUpdate Script by Hyy2001 ${Version}"
@ -585,7 +585,7 @@ function UPGRADE() {
Special_Commands="${Special_Commands} [镜像加速 ${Proxy_Type}]" Special_Commands="${Special_Commands} [镜像加速 ${Proxy_Type}]"
;; ;;
-D) -D)
DL_DEPENDS[@]="$2" DL_DEPENDS=($2)
Special_Commands="${Special_Commands} [$1 ${DL_DEPENDS[@]}]" Special_Commands="${Special_Commands} [$1 ${DL_DEPENDS[@]}]"
shift shift
;; ;;
@ -1084,8 +1084,8 @@ function AutoUpdate_Main() {
;; ;;
-D) -D)
case "${Input[$((${E} + 1))]}" in case "${Input[$((${E} + 1))]}" in
wget | curl | wget-ssl | uclient-fetch) wget* | curl | uclient-fetch)
DL_DEPENDS[@]=${Input[$((${E} + 1))]} DL_DEPENDS=(${Input[$((${E} + 1))]})
;; ;;
*) *)
ECHO r "暂不支持当前下载器: [${Input[$((${E} + 1))]}]" ECHO r "暂不支持当前下载器: [${Input[$((${E} + 1))]}]"