sh/main
This commit is contained in:
parent
12561ee505
commit
72200668a9
1 changed files with 11 additions and 5 deletions
16
sh/main.sh
16
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}"
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue