spcd_banner_add
This commit is contained in:
parent
55051830ac
commit
9eb9e69934
1 changed files with 9 additions and 5 deletions
14
spcd/main.sh
14
spcd/main.sh
|
@ -827,11 +827,15 @@ ${SPCD_PYTHON_ALIAS} / ${spcd_stp__name}"
|
||||||
|
|
||||||
# functions
|
# functions
|
||||||
|
|
||||||
spcd_banner() {
|
spcd_banner_add() {
|
||||||
echo "\
|
if [ -n "${1}" ]; then
|
||||||
${SPCD_DOWN}
|
spcd_ba__text=" ${1} "
|
||||||
${SPCD_VERT} ${*}
|
spcd_ba__length=${#spcd_ba__text}
|
||||||
${SPCD___UP}"
|
spcd_ba__filler="$(spcd_fill "${spcd_ba__length}" ─)"
|
||||||
|
SPCD_BANNER_1="${SPCD_BANNER_1}${spcd_ba__filler}"
|
||||||
|
SPCD_BANNER_2="${SPCD_BANNER_2}${spcd_ba__text}"
|
||||||
|
SPCD_BANNER_3="${SPCD_BANNER_3}${spcd_ba__filler}"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
spcd_cat() {
|
spcd_cat() {
|
||||||
|
|
Loading…
Reference in a new issue