mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-11 07:51:45 +00:00
~修复部分情况下配置文件拉取失败的bug
This commit is contained in:
@@ -13,7 +13,7 @@ webget(){
|
|||||||
#参数【$1】代表下载目录,【$2】代表在线地址
|
#参数【$1】代表下载目录,【$2】代表在线地址
|
||||||
#参数【$3】代表输出显示,【$4】不启用重定向
|
#参数【$3】代表输出显示,【$4】不启用重定向
|
||||||
#参数【$5】代表验证证书,【$6】使用自定义UA
|
#参数【$5】代表验证证书,【$6】使用自定义UA
|
||||||
[ -n "$6" ] && agent="--user-agent \"$6\""
|
[ -n "$6" ] && agent="--user-agent $6"
|
||||||
if wget --help 2>&1 | grep -q 'show-progress' >/dev/null 2>&1; then
|
if wget --help 2>&1 | grep -q 'show-progress' >/dev/null 2>&1; then
|
||||||
[ "$3" = "echooff" ] && progress='-q' || progress='-q --show-progress'
|
[ "$3" = "echooff" ] && progress='-q' || progress='-q --show-progress'
|
||||||
[ "$4" = "rediroff" ] && redirect='--max-redirect=0' || redirect=''
|
[ "$4" = "rediroff" ] && redirect='--max-redirect=0' || redirect=''
|
||||||
|
|||||||
Reference in New Issue
Block a user