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