This commit is contained in:
Marc Beninca 2024-08-31 09:27:22 +02:00
parent da24f0ccd8
commit 88f3f036b0
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -27,9 +27,10 @@ _SPCD_BANNER_VERTICAL="│"
_spcd_banner_add() { _spcd_banner_add() {
if [ -n "${1}" ]; then if [ -n "${1}" ]; then
local text=" ${1} " local text length filler
local length=${#text} text=" ${1} "
local filler="$(_spcd_fill "${length}" "${_SPCD_BANNER_HORIZONTAL}")" length=${#text}
filler="$(_spcd_fill "${length}" "${_SPCD_BANNER_HORIZONTAL}")"
if [ -n "${__SPCD_BANNER_MIDDLE}" ]; then if [ -n "${__SPCD_BANNER_MIDDLE}" ]; then
_spcd_banner_split _spcd_banner_split
else else