diff --git a/src/main.rs b/src/main.rs index 37c7342..4aac079 100644 --- a/src/main.rs +++ b/src/main.rs @@ -176,10 +176,15 @@ fn run() -> Result { ] } else { // MacOS - use std::process::Command; + use std::process::{Command, Stdio}; // Use GNU ls, if available - let gnu_ls_exists = Command::new("gls").arg("--version").status().is_ok(); + let gnu_ls_exists = Command::new("gls") + .arg("--version") + .stdout(Stdio::null()) + .stderr(Stdio::null()) + .status() + .is_ok(); if gnu_ls_exists { vec![