From 428d6aebf414c99250084878a6ed88ea6e59e016 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 26 Aug 2024 16:38:46 +0200 Subject: [PATCH] __/banner --- spcd/bootstrap.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 2b493e0..137ac96 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -69,7 +69,7 @@ _spcd_banner_add() { spcd_ba__filler="$( _spcd_fill "${spcd_ba__length}" "${_SPCD_BANNER_HORIZONTAL}" )" - if [ -n "${SPCD_BANNER_MIDDLE}" ]; then + if [ -n "${__SPCD_BANNER_MIDDLE}" ]; then _spcd_banner_split else _spcd_banner_open @@ -97,17 +97,17 @@ _spcd_banner_add_index() { _spcd_banner_append() { if [ -n "${3}" ]; then - SPCD_BANNER_TOP="${SPCD_BANNER_TOP}${1}" - SPCD_BANNER_MIDDLE="${SPCD_BANNER_MIDDLE}${2}" - SPCD_BANNER_BOTTOM="${SPCD_BANNER_BOTTOM}${3}" + __SPCD_BANNER_TOP="${__SPCD_BANNER_TOP}${1}" + __SPCD_BANNER_MIDDLE="${__SPCD_BANNER_MIDDLE}${2}" + __SPCD_BANNER_BOTTOM="${__SPCD_BANNER_BOTTOM}${3}" fi } _spcd_banner_echo() { echo "\ -${SPCD_BANNER_TOP} -${SPCD_BANNER_MIDDLE} -${SPCD_BANNER_BOTTOM}" +${__SPCD_BANNER_TOP} +${__SPCD_BANNER_MIDDLE} +${__SPCD_BANNER_BOTTOM}" } _spcd_banner_open() { @@ -151,9 +151,9 @@ _spcd_banner_split() { _spcd_banner_wipe() { unset \ - SPCD_BANNER_TOP \ - SPCD_BANNER_MIDDLE \ - SPCD_BANNER_BOTTOM + __SPCD_BANNER_TOP \ + __SPCD_BANNER_MIDDLE \ + __SPCD_BANNER_BOTTOM } # ╭───────────┬───────╮