From dc1b3c92e4c32f2031c2a04474c94b43f14b1187 Mon Sep 17 00:00:00 2001 From: Rajat Jindal Date: Wed, 15 Nov 2017 00:17:05 -0800 Subject: [PATCH] fix build err --- cmd/helm/template.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/helm/template.go b/cmd/helm/template.go index 8ac1ebf1d..2f1f3e48a 100644 --- a/cmd/helm/template.go +++ b/cmd/helm/template.go @@ -261,11 +261,11 @@ func (t *templateCmd) run(cmd *cobra.Command, args []string) error { continue } - if t.outputDir != nil { - writeToFile(t.outputDir, name, data) + if t.outputDir != "" { + writeToFile(t.outputDir, m.name, data) continue } - fmt.Printf("---\n# Source: %s\n", name) + fmt.Printf("---\n# Source: %s\n", m.name) fmt.Printf(data) } return nil