Apply args flag only to sync command and not updatedeps

This commit is contained in:
Fabien Silberstein 2018-04-03 17:46:57 +02:00
parent 813fd4bfc7
commit caf784699d
1 changed files with 5 additions and 5 deletions

10
main.go
View File

@ -193,11 +193,6 @@ func main() {
os.Exit(1)
}
args := c.String("args")
if len(args) > 0 {
helm.SetExtraArgs(strings.Split(args, " ")...)
}
if errs := state.UpdateDeps(helm); errs != nil && len(errs) > 0 {
for _, err := range errs {
fmt.Printf("err: %s\n", err.Error())
@ -205,6 +200,11 @@ func main() {
os.Exit(1)
}
args := c.String("args")
if len(args) > 0 {
helm.SetExtraArgs(strings.Split(args, " ")...)
}
values := c.StringSlice("values")
workers := c.Int("concurrency")