format: remove extra spaces from error output

This commit is contained in:
iff 2023-07-31 11:03:50 +02:00
parent b16dc1dd5b
commit ee7e6886b9
3 changed files with 15 additions and 5 deletions

View file

@ -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()
}