mirror of
https://git.mills.io/prologic/zs
synced 2024-11-22 05:16:11 +03:00
Fix bug in run passing content that was too long as args
This commit is contained in:
parent
0608690f72
commit
bfa4160c6c
2
main.go
2
main.go
@ -278,8 +278,10 @@ 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 {
|
||||
if k != "content" {
|
||||
env = append(env, "ZS_"+strings.ToUpper(k)+"="+v)
|
||||
}
|
||||
}
|
||||
c.Env = env
|
||||
c.Stdout = &outbuf
|
||||
c.Stderr = &errbuf
|
||||
|
Loading…
Reference in New Issue
Block a user