This commit is contained in:
Marc Beninca 2024-12-02 00:30:01 +01:00
parent 7dbf581191
commit f3851dbc88
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -51,7 +51,10 @@ rwx_self_subset() {
for argument in "${@}"; do
path="${RWX_ROOT_SYSTEM}/${argument}"
if [ -d "${path}" ]; then
rwx_find_shell "${path}"
local file
for file in $(rwx_find_shell "${path}"); do
echo "${argument}/${file}"
done
elif [ -f "${path}" ]; then
echo "${argument}"
fi
@ -68,9 +71,8 @@ rwx_self_write() {
rwx_ifs_set
for file in $(rwx_self_subset "${@}"); do
text="${text}
# ${file}
$(cat "${RWX_ROOT_SYSTEM}/${file}")"
$(cat "${RWX_ROOT_SYSTEM}/${file}")
"
done
rwx_ifs_unset
rwx_file_write "${target}" "${text}"