Add -skip-broken option [CentOS only] #245

This commit is contained in:
Kota Kanbe
2016-11-07 21:22:38 +09:00
parent f95af9897b
commit 18a92fa1ca
5 changed files with 25 additions and 6 deletions

View File

@@ -46,6 +46,7 @@ type Config struct {
SSHExternal bool
ContainersOnly bool
SkipBroken bool
HTTPProxy string `valid:"url"`
ResultsDir string
@@ -86,7 +87,6 @@ func (c Config) Validate() bool {
"CVE DB type must be either 'sqlite3' or 'mysql'. -cve-dictionary-dbtype: %s", c.CveDBType))
}
if c.CveDBType == "sqlite3" {
if len(c.CveDBPath) != 0 {
if ok, _ := valid.IsFilePath(c.CveDBPath); !ok {