summaryrefslogtreecommitdiffstats
path: root/scripts/combo-layer
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/combo-layer')
-rwxr-xr-xscripts/combo-layer4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/combo-layer b/scripts/combo-layer
index 0954bb6850..36a8f5fa1e 100755
--- a/scripts/combo-layer
+++ b/scripts/combo-layer
@@ -185,10 +185,10 @@ def runcmd(cmd,destdir=None,printerr=True,out=None,env=None):
185 """ 185 """
186 logger.debug("run cmd '%s' in %s" % (cmd, os.getcwd() if destdir is None else destdir)) 186 logger.debug("run cmd '%s' in %s" % (cmd, os.getcwd() if destdir is None else destdir))
187 if not out: 187 if not out:
188 out = os.tmpfile() 188 out = tempfile.TemporaryFile()
189 err = out 189 err = out
190 else: 190 else:
191 err = os.tmpfile() 191 err = tempfile.TemporaryFile()
192 try: 192 try:
193 subprocess.check_call(cmd, stdout=out, stderr=err, cwd=destdir, shell=isinstance(cmd, str), env=env or os.environ) 193 subprocess.check_call(cmd, stdout=out, stderr=err, cwd=destdir, shell=isinstance(cmd, str), env=env or os.environ)
194 except subprocess.CalledProcessError as e: 194 except subprocess.CalledProcessError as e: