Correctly strip newlines from output
This commit is contained in:
parent
4dd1db342b
commit
ef358ec35e
1 changed files with 5 additions and 1 deletions
|
@ -37,7 +37,11 @@ impl ComposeProject {
|
|||
.output()
|
||||
.expect("Failed to get images");
|
||||
let stdout = String::from_utf8(output.stdout).expect("Failed to parse output");
|
||||
stdout.trim().split('\n').map(String::from).collect()
|
||||
stdout
|
||||
.split('\n')
|
||||
.map(String::from)
|
||||
.filter(|s| !s.is_empty())
|
||||
.collect()
|
||||
}
|
||||
|
||||
pub fn down(&self) -> bool {
|
||||
|
|
Reference in a new issue