fix tar: This does not look like a tar archive

This commit is contained in:
Tony 2022-04-29 00:47:16 +08:00 committed by GitHub
parent a75b19922a
commit fd0be4dba1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -205,7 +205,7 @@ install_agent() {
echo -e "${red}Release 下载失败,请检查本机能否连接 ${GITHUB_URL}${plain}"
return 0
fi
tar xf nezha-agent_linux_${os_arch}.zip &&
unzip -qo nezha-agent_linux_${os_arch}.zip &&
mv nezha-agent $NZ_AGENT_PATH &&
rm -rf nezha-agent_linux_${os_arch}.zip README.md