Skip to content

Commit

Permalink
Fix openwrt wget fail (#33)
Browse files Browse the repository at this point in the history
Openwrt use Busbox version, which don't support -t. Also we don't really neet `-t` to retry twice to download.
  • Loading branch information
FaiChou authored Dec 16, 2024
1 parent 97ce2c4 commit 434dcd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 434dcd0

Please sign in to comment.