This commit is contained in:
Marc Beninca 2025-07-03 21:38:36 +02:00
parent 12561ee505
commit 72200668a9
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -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}"
;;