From 72573cf300a46f3950eb474ffac1bbbd4d83d50d Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Thu, 20 Aug 2020 15:02:52 -0300 Subject: [PATCH] [ui] fix -> not properly checking if a command is an array or str --- 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 1d4c3911..fc6460bd 100644 --- a/bauh/commons/system.py +++ b/bauh/commons/system.py @@ -165,7 +165,7 @@ class ProcessHandler: return process.subproc.returncode is None or process.subproc.returncode == 0 def handle_simple(self, proc: SimpleProcess, output_handler=None) -> Tuple[bool, str]: - self._notify_watcher((proc.instance.args if proc.shell else ' '.join(proc.instance.args)) + '\n') + self._notify_watcher((proc.instance.args if isinstance(proc.instance.args, str) else ' '.join(proc.instance.args)) + '\n') output = StringIO() for o in proc.instance.stdout: