summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcah <cah@ableton.com>2020-11-23 21:36:36 +0100
committercah <cah@ableton.com>2020-11-23 21:36:36 +0100
commitd918a4e4938936a68c82209bd4cfe26f578a663c (patch)
treeb8b370aba4949fbc94e48b59184788272ec1b0ce
parent1d822ab46c804796cd29eb19ef76b4439b14c6b3 (diff)
Try another way to use subprocess; previous breaks on Linux.
-rwxr-xr-xcdist3
1 files changed, 1 insertions, 2 deletions
diff --git a/cdist b/cdist
index 10bed90..7efa7ea 100755
--- a/cdist
+++ b/cdist
@@ -256,9 +256,8 @@ def rmtree(a):
def command(c):
log_normal(c)
- posix = sys.platform != 'win32'
try:
- r = subprocess.run(shlex.split(c, posix=posix), shell=True)
+ r = subprocess.run(c, shell=True)
if r.returncode != 0:
raise Error(f'command {c} failed ({r.returncode})')
except Exception as e: