From 909240fc24c8a6ed137365ec2a66e2812c713955 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 22 Apr 2018 14:37:56 +0200 Subject: [PATCH] Fix: Do not inherit stdout here This caused us to print funny output. But we want to catch the output and print a nice list ourselves here. --- bin/core/imag/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/core/imag/src/main.rs b/bin/core/imag/src/main.rs index 27c82a75..fbaa974e 100644 --- a/bin/core/imag/src/main.rs +++ b/bin/core/imag/src/main.rs @@ -221,7 +221,7 @@ fn main() { .map(|command| { match Command::new(format!("imag-{}", command)) .stdin(::std::process::Stdio::inherit()) - .stdout(::std::process::Stdio::inherit()) + .stdout(::std::process::Stdio::piped()) .stderr(::std::process::Stdio::inherit()) .arg("--version") .output()