runtests.sh summary: add minimum column width
authorZac Medico <zmedico@gentoo.org>
Fri, 4 Jan 2013 13:55:00 +0000 (05:55 -0800)
committerZac Medico <zmedico@gentoo.org>
Fri, 4 Jan 2013 13:55:00 +0000 (05:55 -0800)
runtests.sh

index 6dc0c4005f78234e4656adc927d05273936632e1..010a7bf6fab573aafcbae626a022cd0becd054e3 100755 (executable)
@@ -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 ))