From fd498ce5e47a7201733721ae655f35bf365005f5 Mon Sep 17 00:00:00 2001 From: Xeonacid Date: Tue, 11 Feb 2025 10:27:13 +0800 Subject: [PATCH] cli: drop which stderr message Don't let `which: no ntt in (...)` overwhelm the terminal. --- cli/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/install.sh b/cli/install.sh index 5e1ef217c..547beb7df 100755 --- a/cli/install.sh +++ b/cli/install.sh @@ -121,7 +121,7 @@ function install_cli { # if 'ntt' is already installed, uninstall it # just check with 'which' - if which ntt > /dev/null; then + if which ntt > /dev/null 2>&1; then echo "Removing existing ntt CLI" rm $(which ntt) fi