mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 14:30:10 +01:00
fix: don't collect stderr for package information
This commit is contained in:
parent
cf04753c2b
commit
b155f0673f
1 changed files with 1 additions and 4 deletions
|
|
@ -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<Vec<String>> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue