From: Zac Medico Date: Fri, 4 Jan 2013 13:55:00 +0000 (-0800) Subject: runtests.sh summary: add minimum column width X-Git-Tag: v2.2.0_alpha150~37 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=eca3ec480f58919105251a543d69f4d698909a41;p=portage.git runtests.sh summary: add minimum column width --- diff --git a/runtests.sh b/runtests.sh index 6dc0c4005..010a7bf6f 100755 --- a/runtests.sh +++ b/runtests.sh @@ -77,6 +77,7 @@ if [ ${#status_array[@]} -gt 0 ] ; then [ ${#version} -gt ${max_len} ] && max_len=${#version} done (( columns = max_len + 2 )) + (( columns >= 7 )) || columns=7 printf "\nSummary:\n\n" printf "| %-${columns}s | %s\n|" "Version" "Status" (( total_cols = columns + 11 ))