mirror of
https://github.com/nezhahq/scripts.git
synced 2026-02-21 10:27:27 +08:00
Fix openwrt wget fail
Openwrt use Busbox version, which don't support -t. Also we don't really neet `-t` to retry twice to download.
This commit is contained in:
parent
97ce2c4918
commit
d36fd18276
@ -141,7 +141,7 @@ install() {
|
||||
NZ_AGENT_URL="https://${GITHUB_URL}/naibahq/agent/releases/download/${_version}/nezha-agent_${os}_${os_arch}.zip"
|
||||
fi
|
||||
|
||||
_cmd="wget -t 2 -T 60 -O /tmp/nezha-agent_${os}_${os_arch}.zip $NZ_AGENT_URL >/dev/null 2>&1"
|
||||
_cmd="wget -T 60 -O /tmp/nezha-agent_${os}_${os_arch}.zip $NZ_AGENT_URL >/dev/null 2>&1"
|
||||
if ! eval "$_cmd"; then
|
||||
err "Download nezha-agent release failed, check your network connectivity"
|
||||
exit 1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user