From 8d39e3e0f31c228f082de1835dd0c730779f80c0 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 23 Aug 2024 23:25:48 +0200 Subject: [PATCH] spcd_banner/item --- spcd/main.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spcd/main.sh b/spcd/main.sh index 88c310e..a833849 100644 --- a/spcd/main.sh +++ b/spcd/main.sh @@ -837,8 +837,10 @@ spcd_banner() { spcd_banner_add "${spcd_banner__index}" # for spcd_banner__item in "${SPCD_STEP_TEXT}" "${SPCD_SUBSTEP_TEXT}"; do - spcd_banner_add_123 "┬" "${SPCD_VERT}" "┴" - spcd_banner_add "${spcd_banner__item}" + if [ -n "${spcd_banner__item}" ]; then + spcd_banner_add_123 "┬" "${SPCD_VERT}" "┴" + spcd_banner_add "${spcd_banner__item}" + fi done # spcd_banner_add_123 "╮" "${SPCD_VERT}" "╯"