mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-23 08:47:50 +00: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:
parent
7676cd4b12
commit
dfd34b1b03
1 changed files with 3 additions and 2 deletions
|
|
@ -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...)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue