🙈修改忘改的tar to unzip

🙈修改忘改的tar to unzip
This commit is contained in:
dysf888 2022-04-29 03:26:07 +08:00 committed by GitHub
parent e20198594b
commit b30214d3ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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