From 5604fb2be7dc07df5b160088242bab72d46b9bca Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 24 Aug 2024 13:14:55 +0200 Subject: [PATCH] spcd_banner_add --- spcd/main.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spcd/main.sh b/spcd/main.sh index d7b6a34..3aa7914 100644 --- a/spcd/main.sh +++ b/spcd/main.sh @@ -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