Commit a6463e3b authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: Fix monitor_progress for multiple commands - was resetting to 0 on each

new command
parent d98d4230
...@@ -948,11 +948,11 @@ class Process(object): ...@@ -948,11 +948,11 @@ class Process(object):
fmt='{:.0f}', fmt='{:.0f}',
transform=Progress.percent) as prog: transform=Progress.percent) as prog:
nlines = 0 if total else None
for cmd in cmds: for cmd in cmds:
proc = Process(cmd, *args, **kwargs) proc = Process(cmd, *args, **kwargs)
nlines = 0 if total else None
prog.update(nlines, total) prog.update(nlines, total)
while proc.returncode is None: while proc.returncode is None:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment