Fix scan message with quiet flag

Signed-off-by: Chris Crone <christopher.crone@docker.com>
This commit is contained in:
Chris Crone 2021-04-13 13:53:07 +02:00
parent 74773b9062
commit 411612ed8d
8 changed files with 77 additions and 10 deletions

View file

@ -39,8 +39,7 @@ func DisplayScanSuggestMsg() {
if scanAlreadyInvoked() {
return
}
fmt.Println()
fmt.Println("Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them")
fmt.Fprintf(os.Stderr, "\nUse 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them\n")
}
func scanAlreadyInvoked() bool {