Skip to content

Commit

Permalink
subprocess shell=False
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandredevely committed Nov 14, 2024
1 parent 8976b05 commit 20e189c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oc/pyutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def execproc(command,environment={},stdout=subprocess.PIPE,timeout=60,input=None
if type(environment) is dict and len(environment) > 0:
env.update(environment)

proc = subprocess.run(command, stdout=subprocess.PIPE, input=input, shell=True, timeout=timeout, env=env, encoding=encoding)
proc = subprocess.run(command, stdout=subprocess.PIPE, input=input, timeout=timeout, env=env, encoding=encoding)
if not isinstance(proc, subprocess.CompletedProcess):
return (None, None)
output = proc.stdout
Expand Down

0 comments on commit 20e189c

Please sign in to comment.