From 9d735664531cd01bb408a6b69079dfa285c2580e Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 23 Nov 2021 19:01:00 +0100 Subject: [PATCH] Fixed custom command handling --- src/cpl_cli/command/custom_script_service.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/cpl_cli/command/custom_script_service.py b/src/cpl_cli/command/custom_script_service.py index 87e1a7f9..b3f27b7a 100644 --- a/src/cpl_cli/command/custom_script_service.py +++ b/src/cpl_cli/command/custom_script_service.py @@ -30,10 +30,6 @@ class CustomScriptService(CommandABC): if script == cmd: command = self._workspace.scripts[script] try: - run_command = [] - for word in command.split(' '): - run_command.append(word) - - subprocess.run(run_command) + subprocess.run(command, shell=True if os.name == 'posix' else None) except Exception as e: Console.error(str(e))