From 012cfa3cbe477255c01182863a7973c18bc93231 Mon Sep 17 00:00:00 2001 From: Dog of Pavlov Date: Tue, 10 May 2016 12:22:51 +0900 Subject: [PATCH] Fix #47 Default set "Is this ok [y/N]:" is N. --- scan/redhat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scan/redhat.go b/scan/redhat.go index 40c17c553f..11a695478f 100644 --- a/scan/redhat.go +++ b/scan/redhat.go @@ -462,7 +462,7 @@ func (o *redhat) parseYumCheckUpdateLine(line string) (models.PackageInfo, error func (o *redhat) getChangelog(packageNames string) (stdout string, err error) { command := "" if o.ServerInfo.User == "root" { - command = "yes no | " + command = "echo N | " } if 0 < len(config.Conf.HTTPProxy) { command += util.ProxyEnv()