lint
This commit is contained in:
parent
e060c18949
commit
0593181f10
1 changed files with 3 additions and 5 deletions
|
@ -34,14 +34,13 @@ RWX_ROOT_SYSTEM="/usr/local/lib/${RWX_SELF_NAME}"
|
||||||
#| sort
|
#| sort
|
||||||
rwx_main_find() {
|
rwx_main_find() {
|
||||||
local root="${1}"
|
local root="${1}"
|
||||||
local file="${2}"
|
|
||||||
find \
|
find \
|
||||||
"${root}" \
|
"${root}" \
|
||||||
-name "*.sh" \
|
-name "*.sh" \
|
||||||
-type "f" \
|
-type "f" \
|
||||||
-printf "%P\n" |
|
-printf "%P\n" |
|
||||||
sed "s|\\.[^.]*\$||" |
|
sed "s|\\.[^.]*\$||" |
|
||||||
sort
|
sort
|
||||||
}
|
}
|
||||||
|
|
||||||
# ╭──────┬───────╮
|
# ╭──────┬───────╮
|
||||||
|
@ -108,13 +107,12 @@ EOF
|
||||||
rwx_main_cache() {
|
rwx_main_cache() {
|
||||||
local root="${1}"
|
local root="${1}"
|
||||||
local module="${2}"
|
local module="${2}"
|
||||||
local name="${module}"
|
|
||||||
local path="${root}/${module}.sh"
|
local path="${root}/${module}.sh"
|
||||||
local text
|
local text
|
||||||
text="$(cat "${path}")"
|
text="$(cat "${path}")"
|
||||||
# all source code
|
# all source code
|
||||||
_rwx_code="${_rwx_code}\
|
_rwx_code="${_rwx_code}\
|
||||||
#. ${name}
|
#. ${module}
|
||||||
${text}
|
${text}
|
||||||
"
|
"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue