Travis: Echo length of underline

This commit is contained in:
Dylan Araps 2017-01-28 07:26:43 +11:00
parent 745665b9d1
commit 599ab60909

View file

@ -2584,6 +2584,8 @@ prin() {
} }
get_underline() { get_underline() {
echo "$length"
if [[ "$underline_enabled" == "on" ]]; then if [[ "$underline_enabled" == "on" ]]; then
printf -v underline "%${length}s" printf -v underline "%${length}s"
printf "%b\n" "${text_padding:+\033[${text_padding}C}${zws}${underline// /$underline_char}${reset} " printf "%b\n" "${text_padding:+\033[${text_padding}C}${zws}${underline// /$underline_char}${reset} "