We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e467020 commit eaf67dcCopy full SHA for eaf67dc
plugins/exec.py
@@ -22,12 +22,7 @@ def command_exec(self, args):
22
self.core.command_help('exec')
23
return
24
try:
25
- cut_command = shlex.split(command)
26
- except Exception as e:
27
- self.core.information('Failed to parse command: %s' % (e,), 'Error')
28
- return
29
- try:
30
- process = subprocess.Popen(cut_command, stdout=subprocess.PIPE)
+ process = subprocess.Popen(['sh', '-c', command], stdout=subprocess.PIPE)
31
except OSError as e:
32
self.core.information('Failed to execute command: %s' % (e,), 'Error')
33
0 commit comments