U 优化发布读取环境变量规则

pull/111/head
vapao 2020-06-05 21:53:31 +08:00
parent e36897d3fc
commit 1ebc947d5c
1 changed files with 2 additions and 0 deletions

View File

@ -290,6 +290,8 @@ class Helper:
self._send({'key': key, 'step': step, 'data': data})
def local(self, command, env=None):
if env:
env = os.environ.copy().update(env)
command = 'set -e\n' + command
task = subprocess.Popen(command, env=env, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
while True: