提交 e2315966 编写于 作者: Z zhaoke

* Fix cannot get env issue.

上级 50f20719
......@@ -4,6 +4,7 @@ import (
"bufio"
"context"
"io"
"os"
"strconv"
"strings"
"time"
......@@ -57,6 +58,7 @@ func RunFile(filePath, workspacePath string, conf commDomain.WorkspaceConf,
}
cmd.Dir = workspacePath
cmd.Env = os.Environ()
if commConsts.BatchCount > 1 {
cmd.Env = append(cmd.Env, "ZTF_POOL_ID="+strconv.Itoa(idx+1))
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册