using existing mechanism to flag for failures

pull/3783/head
Ryan Hartje 7 years ago
parent 343acc5a60
commit 9b20d91e42

@ -97,13 +97,12 @@ func (l *lintCmd) run() error {
var total int
var failures int
rc := 0
for _, path := range l.paths {
if linter, err := lintChart(path, rvals, l.namespace, l.strict); err != nil {
fmt.Println("==> Skipping", path)
fmt.Println(err)
if err == errLintNoChart {
rc = 1
failures = failures + 1
}
} else {
fmt.Println("==> Linting", path)
@ -131,10 +130,6 @@ func (l *lintCmd) run() error {
fmt.Fprintf(l.out, "%s, no failures\n", msg)
if rc != 0 {
os.Exit(rc)
}
return nil
}

Loading…
Cancel
Save