self/commands

This commit is contained in:
Marc Beninca 2024-12-01 21:22:35 +01:00
parent bf10fd4a05
commit ea8be45789
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,4 +1,14 @@
# get functions from file
# get commands from root
rwx_self_commands() {
grep \
--directories "recurse" \
--no-filename \
"^${RWX_PREFIX_COMMAND}" "${RWX_ROOT_SYSTEM}" |
cut --delimiter "(" --fields 1 |
sed "s|^${RWX_PREFIX_COMMAND}||"
}
# get functions from root
rwx_self_functions() {
grep \
--directories "recurse" \