fixes
This commit is contained in:
parent
7dbf581191
commit
f3851dbc88
1 changed files with 6 additions and 4 deletions
10
sh/self.sh
10
sh/self.sh
|
@ -51,7 +51,10 @@ rwx_self_subset() {
|
||||||
for argument in "${@}"; do
|
for argument in "${@}"; do
|
||||||
path="${RWX_ROOT_SYSTEM}/${argument}"
|
path="${RWX_ROOT_SYSTEM}/${argument}"
|
||||||
if [ -d "${path}" ]; then
|
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
|
elif [ -f "${path}" ]; then
|
||||||
echo "${argument}"
|
echo "${argument}"
|
||||||
fi
|
fi
|
||||||
|
@ -68,9 +71,8 @@ rwx_self_write() {
|
||||||
rwx_ifs_set
|
rwx_ifs_set
|
||||||
for file in $(rwx_self_subset "${@}"); do
|
for file in $(rwx_self_subset "${@}"); do
|
||||||
text="${text}
|
text="${text}
|
||||||
# ${file}
|
$(cat "${RWX_ROOT_SYSTEM}/${file}")
|
||||||
|
"
|
||||||
$(cat "${RWX_ROOT_SYSTEM}/${file}")"
|
|
||||||
done
|
done
|
||||||
rwx_ifs_unset
|
rwx_ifs_unset
|
||||||
rwx_file_write "${target}" "${text}"
|
rwx_file_write "${target}" "${text}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue