spcd_banner_add

This commit is contained in:
Marc Beninca 2024-08-24 13:14:55 +02:00
parent f1f5004e2a
commit 5604fb2be7
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1058,10 +1058,8 @@ spcd_banner() {
spcd_banner_add "${spcd_banner__index}"
#
for spcd_banner__item in "${SPCD_STEP_TEXT}" "${SPCD_SUBSTEP_TEXT}"; do
if [ -n "${spcd_banner__item}" ]; then
spcd_banner_split
[ -n "${spcd_banner__item}" ] &&
spcd_banner_add "${spcd_banner__item}"
fi
done
#
spcd_banner_close
@ -1075,6 +1073,7 @@ spcd_banner_add() {
spcd_ba__text=" ${1} "
spcd_ba__length=${#spcd_ba__text}
spcd_ba__filler="$(spcd_fill "${spcd_ba__length}")"
spcd_banner_split
spcd_banner_append \
"${spcd_ba__filler}" "${spcd_ba__text}" "${spcd_ba__filler}"
fi