From 1ebc947d5cf904afe5e708d07abcde5439f632d1 Mon Sep 17 00:00:00 2001 From: vapao Date: Fri, 5 Jun 2020 21:53:31 +0800 Subject: [PATCH] =?UTF-8?q?U=20=E4=BC=98=E5=8C=96=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E8=AF=BB=E5=8F=96=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_api/apps/deploy/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spug_api/apps/deploy/utils.py b/spug_api/apps/deploy/utils.py index 2d169ce..a1f2a69 100644 --- a/spug_api/apps/deploy/utils.py +++ b/spug_api/apps/deploy/utils.py @@ -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: