mirror of
https://github.com/containers/podman.git
synced 2025-12-08 14:48:48 +08:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user