mirror of
https://github.com/containers/podman.git
synced 2025-08-14 02:41:34 +08:00
Fix podman build -q
Only thing that should be printed is the image id. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #964 Approved by: mheon
This commit is contained in:

committed by
Atomic Bot

parent
7676cd4b12
commit
dfd34b1b03
@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
@ -211,8 +212,8 @@ func buildCmd(c *cli.Context) error {
|
||||
ForceRmIntermediateCtrs: c.Bool("force-rm"),
|
||||
}
|
||||
|
||||
if !c.Bool("quiet") {
|
||||
options.ReportWriter = os.Stderr
|
||||
if c.Bool("quiet") {
|
||||
options.ReportWriter = ioutil.Discard
|
||||
}
|
||||
|
||||
return runtime.Build(getContext(), options, dockerfiles...)
|
||||
|
Reference in New Issue
Block a user