From fd0be4dba11ff0bbc46c5b267b641eb896767454 Mon Sep 17 00:00:00 2001 From: Tony <1462668901@qq.com> Date: Fri, 29 Apr 2022 00:47:16 +0800 Subject: [PATCH] fix `tar: This does not look like a tar archive` --- script/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/install.sh b/script/install.sh index 3a27fad..41d09f9 100755 --- a/script/install.sh +++ b/script/install.sh @@ -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