Forgot to send the options as actual options.
This commit is contained in:
parent
434603a008
commit
317ed640f0
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue