Verify steps
Description
本地wget 版本信息:
wget --version
GNU Wget 1.20.3 built on linux-gnu.
似乎是当前wget版本不支持类似 --user-agent "\"xxxxx\""的ua导致的,去除$agent / 修改web_get.sh 可以正常工作
if [ -n "$6" ]; then
wget -Y on --user-agent "$6" $progress $redirect $certificate --timeout=10 -O "$1" "$url" && return 0 #成功则退出否则重试
wget -Y off --user-agent "$6" $progress $redirect $certificate --timeout=10 -O "$1" "$2"
else
wget -Y on $progress $redirect $certificate --timeout=10 -O "$1" "$url" && return 0 #成功则退出否则重试
wget -Y off $progress $redirect $certificate --timeout=10 -O "$1" "$2"
fi
Verify steps
Description
本地wget 版本信息:
似乎是当前wget版本不支持类似
--user-agent "\"xxxxx\""的ua导致的,去除$agent / 修改web_get.sh 可以正常工作