]> Nishi Git Mirror - aya.git/commitdiff
Fix bug in run passing content that was too long as args
authorJames Mills <1290234+prologic@users.noreply.github.com>
Sun, 19 Mar 2023 22:38:05 +0000 (08:38 +1000)
committerJames Mills <1290234+prologic@users.noreply.github.com>
Sun, 19 Mar 2023 22:38:05 +0000 (08:38 +1000)
main.go

diff --git a/main.go b/main.go
index 5475f538a87677c37b949368b1a902e7d9b62da8..26e9f91dd244c5c1715053379ff7938f9f54fba6 100644 (file)
--- 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