From bfa4160c6c1905deb8c3d9b37de2f5402b79eaef Mon Sep 17 00:00:00 2001 From: James Mills <1290234+prologic@users.noreply.github.com> Date: Mon, 20 Mar 2023 08:38:05 +1000 Subject: [PATCH] Fix bug in run passing content that was too long as args --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 5475f53..26e9f91 100644 --- a/main.go +++ b/main.go @@ -278,7 +278,9 @@ func run(vars Vars, cmd string, args ...string) (string, error) { env := []string{"ZS=" + os.Args[0], "ZS_OUTDIR=" + PUBDIR} env = append(env, os.Environ()...) for k, v := range vars { - env = append(env, "ZS_"+strings.ToUpper(k)+"="+v) + if k != "content" { + env = append(env, "ZS_"+strings.ToUpper(k)+"="+v) + } } c.Env = env c.Stdout = &outbuf -- 2.43.0