From 30cf4d6e6b41a1893ca27b69fbc737b4d13badfb Mon Sep 17 00:00:00 2001 From: Zhou Hao Date: Mon, 16 Nov 2020 20:54:35 +0800 Subject: [PATCH] modify the output when the output-dir is specified Avoid output in IO when output-dir is specified. Signed-off-by: Zhou Hao --- cmd/helm/template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/helm/template.go b/cmd/helm/template.go index 6123d29d4..73259b712 100644 --- a/cmd/helm/template.go +++ b/cmd/helm/template.go @@ -148,7 +148,7 @@ func newTemplateCmd(cfg *action.Configuration, out io.Writer) *cobra.Command { for _, m := range manifestsToRender { fmt.Fprintf(out, "---\n%s\n", m) } - } else { + } else if client.OutputDir == "" { fmt.Fprintf(out, "%s", manifests.String()) } }