summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/exec.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/plugins/exec.py b/plugins/exec.py
index f7f451df..c729b555 100644
--- a/plugins/exec.py
+++ b/plugins/exec.py
@@ -22,12 +22,7 @@ class Plugin(BasePlugin):
self.core.command_help('exec')
return
try:
- cut_command = shlex.split(command)
- except Exception as e:
- self.core.information('Failed to parse command: %s' % (e,), 'Error')
- return
- try:
- process = subprocess.Popen(cut_command, stdout=subprocess.PIPE)
+ process = subprocess.Popen(['sh', '-c', command], stdout=subprocess.PIPE)
except OSError as e:
self.core.information('Failed to execute command: %s' % (e,), 'Error')
return