diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-11-23 21:36:36 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-11-23 21:36:36 +0100 |
| commit | aba0e545edeaac71bd06278fd29aa36433f028dc (patch) | |
| tree | b8b370aba4949fbc94e48b59184788272ec1b0ce | |
| parent | 1929c5d0df545dddb8e78779b09e9f6c5b25e9f5 (diff) | |
Try another way to use subprocess; previous breaks on Linux.
| -rwxr-xr-x | cdist | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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: |
