summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-11-23 21:36:36 +0100
committerCarl Hetherington <cth@carlh.net>2020-11-23 21:36:36 +0100
commitaba0e545edeaac71bd06278fd29aa36433f028dc (patch)
treeb8b370aba4949fbc94e48b59184788272ec1b0ce
parent1929c5d0df545dddb8e78779b09e9f6c5b25e9f5 (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: