From b9bdb810211fcebf468a2b4da853bf7777e36048 Mon Sep 17 00:00:00 2001 From: Aaron Virshup Date: Fri, 21 Apr 2017 15:25:54 -0700 Subject: [PATCH] Fix line width for non-tty runs --- dockermake/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dockermake/utils.py b/dockermake/utils.py index 6c7b377..e553e44 100644 --- a/dockermake/utils.py +++ b/dockermake/utils.py @@ -155,6 +155,8 @@ def human_readable_size(num, suffix='B'): def stream_docker_logs(stream, name): textwidth = get_console_width() - 5 + if textwidth <= 2: + textwidth = 100 wrapper = textwrap.TextWrapper(initial_indent=' ', subsequent_indent=' ', break_on_hyphens=False,