Forgot to send the options as actual options.

This commit is contained in:
Anton Hvornum 2019-04-10 18:21:08 +02:00
parent 434603a008
commit 317ed640f0
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ def run(cmd, echo=False, opts=None, *args, **kwargs):
if not opts: opts = {}
if echo or 'debug' in opts:
print('[!] {}'.format(cmd))
handle = Popen(cmd, shell='True', stdout=PIPE, stderr=STDOUT, stdin=PIPE **kwargs)
handle = Popen(cmd, shell='True', stdout=PIPE, stderr=STDOUT, stdin=PIPE, **kwargs)
output = b''
while handle.poll() is None:
data = handle.stdout.read()