This commit is contained in:
Marc Beninca 2024-12-01 23:20:05 +01:00
parent 76176ae49f
commit 8e2cd2a867
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -125,7 +125,8 @@ rwx_main() {
# user root
rwx_source "${RWX_SELF_USER}"
#
case "${0}" in
local argument="$(echo "${0}" | sed "s|^-||")"
case "${argument}" in
"bash" | \
"dash" | \
"sh")
@ -144,7 +145,7 @@ rwx_main() {
;;
*)
local function name
name="$(basename "${0}")"
name="$(basename "${argument}")"
function="${RWX_SELF_COMMAND}${name}"
"${function}" "${@}"
;;