From 88f3f036b06a236087e7444287fe2f60530758d1 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 31 Aug 2024 09:27:22 +0200 Subject: [PATCH] filler --- spcd/bootstrap.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index fe3829d..596dc99 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -27,9 +27,10 @@ _SPCD_BANNER_VERTICAL="│" _spcd_banner_add() { if [ -n "${1}" ]; then - local text=" ${1} " - local length=${#text} - local filler="$(_spcd_fill "${length}" "${_SPCD_BANNER_HORIZONTAL}")" + local text length filler + text=" ${1} " + length=${#text} + filler="$(_spcd_fill "${length}" "${_SPCD_BANNER_HORIZONTAL}")" if [ -n "${__SPCD_BANNER_MIDDLE}" ]; then _spcd_banner_split else