From 3a07e487e31006d7b235bce535e1e97022272bb6 Mon Sep 17 00:00:00 2001 From: Lucas Santos Date: Wed, 19 Jul 2023 12:24:19 +0000 Subject: [PATCH] :m: Fix env variable parsing strings containing the "=" char --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index d6c98cc..b148063 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -29,7 +29,7 @@ func renderTemplate(cmd *cobra.Command, args []string) error { ctx := gonja.Context{} for _, element := range os.Environ() { variable := strings.Split(element, "=") - ctx[variable[0]] = variable[1] + ctx[variable[0]] = strings.Join(variable[1:], "=") } out, err := tpl.Execute(ctx) if err != nil {