feat: adding yum integration

This commit is contained in:
iff 2024-12-08 11:32:39 +01:00
parent 43dc34a24f
commit c55c714b4b
2 changed files with 60 additions and 44 deletions

View file

@ -235,9 +235,9 @@ 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_lowercase(),
true => String::from_utf8_lossy(&output.stderr).to_lowercase(),
match output.stdout.is_empty() {
false => String::from_utf8_lossy(&output.stdout).to_lowercase(),
true => String::from_utf8_lossy(&output.stderr).to_lowercase(),
}
}