spcd_banner_add

This commit is contained in:
Marc Beninca 2024-08-23 22:48:07 +02:00
parent 55051830ac
commit 9eb9e69934
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -827,11 +827,15 @@ ${SPCD_PYTHON_ALIAS} / ${spcd_stp__name}"
# functions # functions
spcd_banner() { spcd_banner_add() {
echo "\ if [ -n "${1}" ]; then
${SPCD_DOWN} spcd_ba__text=" ${1} "
${SPCD_VERT} ${*} spcd_ba__length=${#spcd_ba__text}
${SPCD___UP}" 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}"
fi
} }
spcd_cat() { spcd_cat() {