From a1a018fe7dd1cd2ba14c1b4e17845da77a26d9e7 Mon Sep 17 00:00:00 2001 From: Rasmus Rosengren Date: Wed, 8 Mar 2023 03:17:54 +0100 Subject: [PATCH] silence the which command --- src/utils.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils.rs b/src/utils.rs index 606bdc3..cb68184 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -62,6 +62,8 @@ pub fn remove_dir_if_empty(path: &Path) -> anyhow::Result<()> { pub fn command_exists(command: &str) -> bool { std::process::Command::new("which") .arg(&command) + .stdout(std::process::Stdio::null()) + .stderr(std::process::Stdio::null()) .status() .is_ok() }