Merge pull request #711 from technosophos/fix/helm-update-error

fix(helm): print err if no repositories to update
pull/714/head
Matt Butcher 8 years ago
commit 37981e9cf2

@ -1,6 +1,7 @@
package main
import (
"errors"
"fmt"
"io"
"io/ioutil"
@ -36,6 +37,10 @@ func runUpdate(cmd *cobra.Command, args []string) error {
return err
}
if len(f.Repositories) == 0 {
return errors.New("no repositories found. You must add one before updating")
}
updateCharts(f.Repositories, verboseUpdate)
return nil
}

Loading…
Cancel
Save