main/cmd
This commit is contained in:
parent
d94880bb75
commit
ba7a51e1b1
1 changed files with 5 additions and 2 deletions
|
@ -138,10 +138,13 @@ rwx_main() {
|
|||
fi
|
||||
;;
|
||||
*)
|
||||
echo
|
||||
local argument="${0}"
|
||||
local name
|
||||
name="$(basename "${argument}")"
|
||||
"rwx_cmd_${name}" "${@}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# run main function
|
||||
rwx_main
|
||||
rwx_main "${@}"
|
||||
|
|
Loading…
Reference in a new issue