From f6bba5715930564b6c711286b2a42d7fea13f404 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 1 Sep 2024 15:56:18 +0200 Subject: [PATCH] box constants --- spcd/bootstrap.sh | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 4e3b7a2..2dc6382 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -4,6 +4,15 @@ # │ _ │ # ╰───╯ +_SPCD_BOX_DOWN_AND_HORIZONTAL="┬" +_SPCD_BOX_DOWN_AND_LEFT="╮" +_SPCD_BOX_DOWN_AND_RIGHT="╭" +_SPCD_BOX_HORIZONTAL="─" +_SPCD_BOX_UP_AND_HORIZONTAL="┴" +_SPCD_BOX_UP_AND_LEFT="╯" +_SPCD_BOX_UP_AND_RIGHT="╰" +_SPCD_BOX_VERTICAL="│" + _SPCD_CMD_SUM="sha512sum" _spcd_fill() { @@ -18,14 +27,14 @@ _spcd_fill() { # │ _ │ banner │ # ╰───┴────────╯ -_SPCD_BANNER_DOWN_AND_HORIZONTAL="┬" -_SPCD_BANNER_DOWN_AND_LEFT="╮" -_SPCD_BANNER_DOWN_AND_RIGHT="╭" -_SPCD_BANNER_HORIZONTAL="─" -_SPCD_BANNER_UP_AND_HORIZONTAL="┴" -_SPCD_BANNER_UP_AND_LEFT="╯" -_SPCD_BANNER_UP_AND_RIGHT="╰" -_SPCD_BANNER_VERTICAL="│" +_SPCD_BANNER_DOWN_AND_HORIZONTAL="${_SPCD_BOX_DOWN_AND_HORIZONTAL}" +_SPCD_BANNER_DOWN_AND_LEFT="${_SPCD_BOX_DOWN_AND_LEFT}" +_SPCD_BANNER_DOWN_AND_RIGHT="${_SPCD_BOX_DOWN_AND_RIGHT}" +_SPCD_BANNER_HORIZONTAL="${_SPCD_BOX_HORIZONTAL}" +_SPCD_BANNER_UP_AND_HORIZONTAL="${_SPCD_BOX_UP_AND_HORIZONTAL}" +_SPCD_BANNER_UP_AND_LEFT="${_SPCD_BOX_UP_AND_LEFT}" +_SPCD_BANNER_UP_AND_RIGHT="${_SPCD_BOX_UP_AND_RIGHT}" +_SPCD_BANNER_VERTICAL="${_SPCD_BOX_VERTICAL}" _spcd_banner_add() { if [ -n "${1}" ]; then