main/root
This commit is contained in:
parent
1de1cad1b3
commit
225dd1380b
3 changed files with 13 additions and 14 deletions
|
@ -10,14 +10,14 @@
|
|||
rwx_self_subset() {
|
||||
local argument file root
|
||||
for argument in "${@}"; do
|
||||
root="${RWX_ROOT_SYSTEM}/${argument}"
|
||||
root="${rwx_main_root}/${argument}"
|
||||
file="${argument}.${RWX_MAIN_EXTENSION}"
|
||||
if [ -d "${root}" ]; then
|
||||
local file
|
||||
for file in $(rwx_main_find "${root}"); do
|
||||
echo "${argument}/${file}.${RWX_MAIN_EXTENSION}"
|
||||
done
|
||||
elif [ -f "${RWX_ROOT_SYSTEM}/${file}" ]; then
|
||||
elif [ -f "${rwx_main_root}/${file}" ]; then
|
||||
echo "${file}"
|
||||
fi
|
||||
done
|
||||
|
@ -38,7 +38,7 @@ rwx_self_write() {
|
|||
files="$(rwx_self_subset "${@}")"
|
||||
while IFS= read -r file; do
|
||||
text="${text}
|
||||
$(cat "${RWX_ROOT_SYSTEM}/${file}")
|
||||
$(cat "${rwx_main_root}/${file}")
|
||||
"
|
||||
done <<EOF
|
||||
${files}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue