mirror of
https://github.com/anchore/syft.git
synced 2026-10-31 14:36:33 +01:00
fix quiet flag (#2081)
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ func New(id clio.Identification) clio.Application {
|
||||
// select a UI based on the logging configuration and state of stdin (if stdin is a tty)
|
||||
func(cfg clio.Config) ([]clio.UI, error) {
|
||||
noUI := ui.None(cfg.Log.Quiet)
|
||||
if !cfg.Log.AllowUI(os.Stdin) {
|
||||
if !cfg.Log.AllowUI(os.Stdin) || cfg.Log.Quiet {
|
||||
return []clio.UI{noUI}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user