From 434dcd0ad6a30a5f2c8b3e499bf1513cf235dd9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E8=BE=89?= Date: Mon, 16 Dec 2024 18:59:29 +0800 Subject: [PATCH] Fix openwrt wget fail (#33) Openwrt use Busbox version, which don't support -t. Also we don't really neet `-t` to retry twice to download. --- agent/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/install.sh b/agent/install.sh index 00ecbdc..563033d 100644 --- a/agent/install.sh +++ b/agent/install.sh @@ -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