mirror of https://github.com/openspug/spug
F 修复主机执行的发布操作环境变量异常的问题 #134
parent
365159b349
commit
223f80a7ab
|
@ -291,6 +291,7 @@ class Helper:
|
|||
|
||||
def local(self, command, env=None):
|
||||
if env:
|
||||
env = dict(env.items())
|
||||
env.update(os.environ)
|
||||
command = 'set -e\n' + command
|
||||
task = subprocess.Popen(command, env=env, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||
|
|
Loading…
Reference in New Issue