diff --git a/repo2docker/utils.py b/repo2docker/utils.py index f8bf96c0..bb0d7c2a 100644 --- a/repo2docker/utils.py +++ b/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: