__/banner
All checks were successful
/ job (push) Successful in 10m6s

This commit is contained in:
Marc Beninca 2024-08-26 16:38:46 +02:00
parent ad23eb5180
commit 428d6aebf4
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -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
}
# ╭───────────┬───────╮