From: James Mills <1290234+prologic@users.noreply.github.com> Date: Sun, 19 Mar 2023 22:38:05 +0000 (+1000) Subject: Fix bug in run passing content that was too long as args X-Git-Tag: 0.3.0~5 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=bfa4160c6c1905deb8c3d9b37de2f5402b79eaef;p=aya.git Fix bug in run passing content that was too long as args --- 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