This commit is contained in:
Marc Beninca 2024-12-01 21:03:57 +01:00
parent 163ff926cd
commit 1e1954ce9b
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -7,6 +7,8 @@
RWX_MAIN_NAME="main.sh"
RWX_SELF_NAME="rwx"
RWX_PREFIX_COMMAND="${RWX_SELF_NAME}_cmd_"
# ╭───────────╮
# │ variables │
# ╰───────────╯
@ -148,9 +150,10 @@ rwx_main() {
;;
*)
local argument="${0}"
local name
local function name
name="$(basename "${argument}")"
"rwx_cmd_${name}" "${@}"
function="${RWX_PREFIX_COMMAND}${name}"
"${function}" "${@}"
;;
esac
}