From f16870afd3d47a57717833a6b293914261a62670 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Thu, 20 Aug 2020 14:47:32 -0300 Subject: [PATCH] fix -> not passing the subprocess command arg as an array when shell is set --- bauh/commons/system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bauh/commons/system.py b/bauh/commons/system.py index 3437a479..1d4c3911 100644 --- a/bauh/commons/system.py +++ b/bauh/commons/system.py @@ -97,7 +97,7 @@ class SimpleProcess: if stdin: args['stdin'] = stdin - return subprocess.Popen(args=' '.join(cmd) if self.shell else cmd, **args) + return subprocess.Popen(args=[' '.join(cmd)] if self.shell else cmd, **args) class ProcessHandler: