mirror of
https://git.mills.io/prologic/zs
synced 2024-11-29 00:36:11 +03:00
Fix bug in run passing content that was too long as args
This commit is contained in:
parent
0608690f72
commit
bfa4160c6c
4
main.go
4
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 := []string{"ZS=" + os.Args[0], "ZS_OUTDIR=" + PUBDIR}
|
||||||
env = append(env, os.Environ()...)
|
env = append(env, os.Environ()...)
|
||||||
for k, v := range vars {
|
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.Env = env
|
||||||
c.Stdout = &outbuf
|
c.Stdout = &outbuf
|
||||||
|
Loading…
Reference in New Issue
Block a user