Looks like we need shell=True on Windows to do things like run\tests
[cdist.git] / cdist
diff --git a/cdist b/cdist
index c9f15a0c79637afe9942ab79ad40a8d3009b2f82..516dcadaf34fe742fbc1291c4c76ce43b27884bb 100755 (executable)
--- 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: