From ff3f3779111f895ec262a74a68609c374ebb5f96 Mon Sep 17 00:00:00 2001 From: osm0sis Date: Wed, 20 Oct 2021 17:06:45 -0300 Subject: [PATCH] scripts: touch up print_title - stars aren't pounds, let's just call it a title bar :P --- scripts/util_functions.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/util_functions.sh b/scripts/util_functions.sh index 2be9691f7..ba03eaf13 100644 --- a/scripts/util_functions.sh +++ b/scripts/util_functions.sh @@ -72,17 +72,17 @@ resolve_vars() { } print_title() { - local len line1len line2len pounds + local len line1len line2len bar line1len=$(echo -n $1 | wc -c) line2len=$(echo -n $2 | wc -c) len=$line2len [ $line1len -gt $line2len ] && len=$line1len len=$((len + 2)) - pounds=$(printf "%${len}s" | tr ' ' '*') - ui_print "$pounds" + bar=$(printf "%${len}s" | tr ' ' '*') + ui_print "$bar" ui_print " $1 " [ "$2" ] && ui_print " $2 " - ui_print "$pounds" + ui_print "$bar" } ######################