From 077d72d5cd3ab4f419f6ca9000e09b13a40a8450 Mon Sep 17 00:00:00 2001 From: tsosunchia <59512455+tsosunchia@users.noreply.github.com> Date: Wed, 25 May 2022 17:03:35 +0800 Subject: [PATCH] Update nt_install.sh --- nt_install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nt_install.sh b/nt_install.sh index e856e5b..756a445 100644 --- a/nt_install.sh +++ b/nt_install.sh @@ -233,7 +233,7 @@ checkVersion() { echo "获取版本失败,请检查网络连接" exit 1 fi - currentVersion=$(nexttrace -V | head -n 1 | awk '{print $2}') + currentVersion=$(nexttrace -V | head -n 1 | awk '{print $2}') &> /dev/null if [[ $currentVersion == $version ]]; then echo "当前版本已是最新版本" exit 0 @@ -243,7 +243,7 @@ checkVersion() { if [[ $auto == True ]]; then return 0 fi - read -r -p "是否更新软件? (y/n)" input + read -r -p "是否安装/更新软件? (y/n)" input case $input in [yY][eE][sS] | [yY]) return 0