Skip to content

Commit

Permalink
Update install-agent.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ansoncloud8 authored Sep 7, 2024
1 parent 39fa77a commit ef2827b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install-agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ download_agent() {
# 如果传入了VERSION变量,下载指定版本
DOWNLOAD_LINK="https://github.com/nezhahq/agent/releases/${VERSION}/download/nezha-agent_freebsd_amd64.zip"
fi
echo "下载版本:${VERSION}"
if ! wget -qO "$ZIP_FILE" "$DOWNLOAD_LINK"; then
echo 'error: Download failed! Please check your network or try again.'
return 1
fi
echo "下载版本:${VERSION}"
return 0
}

Expand Down

0 comments on commit ef2827b

Please sign in to comment.