From b155f0673fa18d63732056e3dfe01a721310576a Mon Sep 17 00:00:00 2001 From: iff Date: Thu, 13 Mar 2025 20:37:25 +0100 Subject: [PATCH] fix: don't collect stderr for package information --- core/src/shell.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/src/shell.rs b/core/src/shell.rs index ace217c..63f35a3 100644 --- a/core/src/shell.rs +++ b/core/src/shell.rs @@ -312,10 +312,7 @@ pub fn command_output(shell: &str, command: &str) -> String { .output() .expect("failed to execute process"); - match output.stdout.is_empty() { - false => String::from_utf8_lossy(&output.stdout).to_string(), - true => String::from_utf8_lossy(&output.stderr).to_string(), - } + String::from_utf8_lossy(&output.stdout).to_string() } pub fn module_output(data: &Data, module: &str) -> Option> {