mirror of
https://github.com/powerline/powerline.git
synced 2025-07-25 06:46:33 +02:00
Explicitly specify shell=False when using powerline.lib.shell.run_cmd
This commit is contained in:
parent
ed267933ed
commit
afa6b83815
@ -23,7 +23,7 @@ def run_cmd(pl, cmd, stdin=None):
|
|||||||
String passed to command. May be None.
|
String passed to command. May be None.
|
||||||
'''
|
'''
|
||||||
try:
|
try:
|
||||||
p = Popen(cmd, stdout=PIPE, stdin=PIPE)
|
p = Popen(cmd, shell=False, stdout=PIPE, stdin=PIPE)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
pl.exception('Could not execute command ({0}): {1}', e, cmd)
|
pl.exception('Could not execute command ({0}): {1}', e, cmd)
|
||||||
return None
|
return None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user