summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-11-20 12:58:17 +0100
committerCarl Hetherington <cth@carlh.net>2020-11-20 12:58:17 +0100
commitd0d369e34fa1767889ec817315e909c2db081ad9 (patch)
tree44583209b0564a39f3c17a1a0dc2c01141a48c40
parent02b8f1135e0536f87fbc1a68a00fb8201dc5fced (diff)
Looks like we need shell=True on Windows to do things like run\tests
-rwxr-xr-xcdist2
1 files changed, 1 insertions, 1 deletions
diff --git a/cdist b/cdist
index c9f15a0..516dcad 100755
--- a/cdist
+++ b/cdist
@@ -257,7 +257,7 @@ def rmtree(a):
def command(c):
log_normal(c)
try:
- r = subprocess.run(shlex.split(c))
+ r = subprocess.run(shlex.split(c), shell=True)
if r.returncode != 0:
raise Error(f'command {c} failed ({r.returncode})')
except Exception as e: