Fixed custom command handling

This commit is contained in:
Sven Heidemann 2021-11-23 19:01:00 +01:00
parent 28ba0c174a
commit 9d73566453

View File

@ -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))