From dc6537005ab3e1db9b2c35b81c96125c210ff645 Mon Sep 17 00:00:00 2001 From: tsosunchia <59512455+tsosunchia@users.noreply.github.com> Date: Tue, 31 May 2022 19:41:12 +0800 Subject: [PATCH] fix some bugs --- quicklytest.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/quicklytest.sh b/quicklytest.sh index d16646b..967b9dd 100644 --- a/quicklytest.sh +++ b/quicklytest.sh @@ -20,7 +20,24 @@ check_root() { } checkNexttrace() { - echo -e "${Info} 正在检查Nexttrace...(若未安装NextTrace则开始安装)" + if $(which nexttrace >/dev/null 2>&1); then + echo -e "${Info} 您已安装NextTrace,是否检查更新?" + if ask_if "输入n/y以选择:[n]"; then + echo -e "${Info} 正在检查更新..." + else + return + fi + else + echo -e "${Info} 您未安装NextTrace,正在开始安装..." + mkdir ~/.nexttrace/ + cat >~/.nexttrace/ntraceConfig.yml </dev/null fi