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
|
||||
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}"
|
||||
|
|
Loading…
Reference in a new issue