Fix podman save when redirecting output

podman save would write the progress bar to the image tar file
when the output was redirected with >.
Fixed the writer to write to stderr for all commands using writer

Signed-off-by: umohnani8 <umohnani@redhat.com>

Closes: #362
Approved by: mheon
This commit is contained in:
umohnani8
2018-02-19 15:39:56 -05:00
committed by Atomic Bot
parent 8eb5cf7489
commit 8f8fd1d900
5 changed files with 6 additions and 5 deletions

View File

@@ -392,7 +392,7 @@ func imageData(c *cli.Context, runtime *libpod.Runtime, image string) (string, s
// Pull the image
var writer io.Writer
if !c.Bool("quiet") {
writer = os.Stdout
writer = os.Stderr
}
createImage.Pull(writer)
}