spcd_banner_add_123

This commit is contained in:
Marc Beninca 2024-08-23 23:03:18 +02:00
parent 9eb9e69934
commit f3d5b5c464
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -832,9 +832,16 @@ spcd_banner_add() {
spcd_ba__text=" ${1} "
spcd_ba__length=${#spcd_ba__text}
spcd_ba__filler="$(spcd_fill "${spcd_ba__length}")"
SPCD_BANNER_1="${SPCD_BANNER_1}${spcd_ba__filler}"
SPCD_BANNER_2="${SPCD_BANNER_2}${spcd_ba__text}"
SPCD_BANNER_3="${SPCD_BANNER_3}${spcd_ba__filler}"
spcd_banner_add_123 \
"${spcd_ba__filler}" "${spcd_ba__text}" "${spcd_ba__filler}"
fi
}
spcd_banner_add_123() {
if [ -n "${3}" ]; then
SPCD_BANNER_1="${SPCD_BANNER_1}${1}"
SPCD_BANNER_2="${SPCD_BANNER_2}${2}"
SPCD_BANNER_3="${SPCD_BANNER_3}${3}"
fi
}