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