mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 14:30:10 +01:00
format: remove extra spaces from error output
This commit is contained in:
parent
b16dc1dd5b
commit
ee7e6886b9
3 changed files with 15 additions and 5 deletions
|
|
@ -61,6 +61,9 @@ pub fn command_output(shell: &str, command: &str) -> String {
|
|||
|
||||
String::from_utf8_lossy(&output.stderr)
|
||||
.to_string()
|
||||
.split_whitespace()
|
||||
.collect::<Vec<&str>>()
|
||||
.join(" ")
|
||||
.to_lowercase()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue