From b30214d3ad6c16a59f074c0d9c36307feb55d203 Mon Sep 17 00:00:00 2001 From: dysf888 <47450409+dysf888@users.noreply.github.com> Date: Fri, 29 Apr 2022 03:26:07 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=99=88=E4=BF=AE=E6=94=B9=E5=BF=98?= =?UTF-8?q?=E6=94=B9=E7=9A=84tar=20to=20unzip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🙈修改忘改的tar to unzip --- script/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/install.sh b/script/install.sh index 3a27fad..7a791ae 100755 --- a/script/install.sh +++ b/script/install.sh @@ -125,7 +125,7 @@ before_show_menu() { install_base() { (command -v git >/dev/null 2>&1 && command -v curl >/dev/null 2>&1 && command -v wget >/dev/null 2>&1 && command -v tar >/dev/null 2>&1) || - (install_soft curl wget git tar) + (install_soft curl wget git unzip) } install_soft() { @@ -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 nezha-agent_linux_${os_arch}.zip && mv nezha-agent $NZ_AGENT_PATH && rm -rf nezha-agent_linux_${os_arch}.zip README.md