This commit is contained in:
parent
5346091e7b
commit
465f0ba475
1 changed files with 7 additions and 6 deletions
13
sh/self.sh
13
sh/self.sh
|
@ -155,16 +155,17 @@ export ENV=\"${RWX_MAIN_PATH}\"
|
|||
# ╰──────┴────────╯
|
||||
|
||||
rwx_self_subset() {
|
||||
local argument path
|
||||
local argument file root
|
||||
for argument in "${@}"; do
|
||||
path="${RWX_ROOT_SYSTEM}/${argument}"
|
||||
if [ -d "${path}" ]; then
|
||||
root="${RWX_ROOT_SYSTEM}/${argument}"
|
||||
file="${argument}.sh"
|
||||
if [ -d "${root}" ]; then
|
||||
local file
|
||||
for file in $(rwx_find_shell "${path}"); do
|
||||
for file in $(rwx_find_shell "${root}"); do
|
||||
echo "${argument}/${file}"
|
||||
done
|
||||
elif [ -f "${path}" ]; then
|
||||
echo "${argument}"
|
||||
elif [ -f "${RWX_ROOT_SYSTEM}/${file}" ]; then
|
||||
echo "${file}"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue