utils.execute_cmd flush buffer if no EOL
MODIFY
repo2docker/utils.py
repo2docker/utils.py
@@ -50,6 +50,8 @@ def execute_cmd(cmd, capture=False, **kwargs):
if c == b"\n":
yield flush()
c_last = c
+ if buf:
+ yield flush()
finally:
ret = proc.wait()
if ret != 0:

utils.execute_cmd flush buffer if no EOL