From 72200668a9fef2c05be555127b7299753b5931a3 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Thu, 3 Jul 2025 21:38:36 +0200 Subject: [PATCH] sh/main --- sh/main.sh | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/sh/main.sh b/sh/main.sh index 725995e..d1ea522 100755 --- a/sh/main.sh +++ b/sh/main.sh @@ -63,17 +63,23 @@ rwx_cache() { local root="${1}" local module="${2}" local name="${module%.sh}" + local fill="$(rwx_fill "${#name}" ─)" local path="${root}/${module}" local text="$(cat "${path}")" case "${text}" in - "#!"*) RWX_CODE="${text}" ;; + "#!"*) + RWX_CODE="${text} + +# ╭───┬────┬─${fill}─╮ +# │ ↖ │ sh │ ${name} │ +# ╰───┴────┴─${fill}─╯" + ;; *) - local fill="$(rwx_fill "${#name}" ─)" RWX_CODE="${RWX_CODE} -# ╭───┬─${fill}─┬────╮ -# │ ↙ │ ${name} │ sh │ -# ╰───┴─${fill}─┴────╯ +# ╭───┬────┬─${fill}─╮ +# │ ↙ │ sh │ ${name} │ +# ╰───┴────┴─${fill}─╯ ${text}" ;;