diff --git a/main.go b/main.go index 438aeb58..4bd07fe6 100644 --- a/main.go +++ b/main.go @@ -495,6 +495,9 @@ func executeSyncCommand(c *cli.Context, state *state.HelmState, helm helmexec.In } func executeTemplateCommand(c *cli.Context, state *state.HelmState, helm helmexec.Interface) []error { + if c.GlobalString("helm-binary") != "" { + helm.SetHelmBinary(c.GlobalString("helm-binary")) + } if errs := state.SyncRepos(helm); errs != nil && len(errs) > 0 { return errs } @@ -503,10 +506,6 @@ func executeTemplateCommand(c *cli.Context, state *state.HelmState, helm helmexe return errs } - if c.GlobalString("helm-binary") != "" { - helm.SetHelmBinary(c.GlobalString("helm-binary")) - } - args := args.GetArgs(c.String("args"), state) values := c.StringSlice("values") workers := c.Int("concurrency")