Fixed custom command handling
This commit is contained in:
parent
28ba0c174a
commit
9d73566453
@ -30,10 +30,6 @@ class CustomScriptService(CommandABC):
|
|||||||
if script == cmd:
|
if script == cmd:
|
||||||
command = self._workspace.scripts[script]
|
command = self._workspace.scripts[script]
|
||||||
try:
|
try:
|
||||||
run_command = []
|
subprocess.run(command, shell=True if os.name == 'posix' else None)
|
||||||
for word in command.split(' '):
|
|
||||||
run_command.append(word)
|
|
||||||
|
|
||||||
subprocess.run(run_command)
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
Console.error(str(e))
|
Console.error(str(e))
|
||||||
|
Loading…
Reference in New Issue
Block a user