fix: change ControlPath to .vuls of SSH option (#618)

This commit is contained in:
Kota Kanbe
2018-03-14 16:39:17 +09:00
committed by GitHub
parent 9afbf1255f
commit 0c919da4b1
6 changed files with 55 additions and 2 deletions

View File

@@ -188,6 +188,11 @@ func (p *ScanCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{})
c.Conf.LogDir = p.logDir
util.Log = util.NewCustomLogger(c.ServerInfo{})
if err := mkdirDotVuls(); err != nil {
util.Log.Errorf("Failed to create .vuls: %s", err)
return subcommands.ExitUsageError
}
var keyPass string
var err error
if p.askKeyPassword {