From 89998d8a65d54d85437ea44240725fb632bc69e1 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 24 Aug 2024 12:16:43 +0200 Subject: [PATCH] spcd_banner_wipe --- spcd/main.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spcd/main.sh b/spcd/main.sh index 9b8769b..80d6e05 100644 --- a/spcd/main.sh +++ b/spcd/main.sh @@ -828,6 +828,7 @@ ${SPCD_PYTHON_ALIAS} / ${spcd_stp__name}" # functions spcd_banner() { + spcd_banner_wipe spcd_banner_open # spcd_banner__index="${SPCD_STEP}" @@ -848,6 +849,7 @@ spcd_banner() { ${SPCD_BANNER_1} ${SPCD_BANNER_2} ${SPCD_BANNER_3}" + spcd_banner_wipe } spcd_banner_add() { @@ -873,7 +875,6 @@ spcd_banner_close() { } spcd_banner_open() { - unset SPCD_BANNER_1 SPCD_BANNER_2 SPCD_BANNER_3 spcd_banner_add_123 "${SPCD_BOX_DOWN}" "${SPCD_VERT}" "${SPCD_BOX_UP}" } @@ -881,6 +882,10 @@ spcd_banner_split() { spcd_banner_add_123 "┬" "${SPCD_VERT}" "┴" } +spcd_banner_wipe() { + unset SPCD_BANNER_1 SPCD_BANNER_2 SPCD_BANNER_3 +} + spcd_cat() { spcd_cat__file="${1}" if [ -n "${spcd_cat__file}" ]; then