mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Don't use a shell and thus avoid a whole class of problems
This commit is contained in:
@@ -11,7 +11,7 @@ import datetime
|
||||
args = sys.argv[1:]
|
||||
startd = datetime.datetime.now()
|
||||
|
||||
cmd = subprocess.Popen(args, shell=True,
|
||||
cmd = subprocess.Popen(args, shell=False,
|
||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
|
||||
out, err = cmd.communicate()
|
||||
|
||||
Reference in New Issue
Block a user