parent
ecc2f53254
commit
19e77a83f6
2 changed files with 18 additions and 15 deletions
|
@ -289,6 +289,7 @@ rwx_code_main() {
|
||||||
# find user modules
|
# find user modules
|
||||||
rwx_code_modules_user="$(rwx_main_find "${rwx_code_root}")"
|
rwx_code_modules_user="$(rwx_main_find "${rwx_code_root}")"
|
||||||
# source user modules
|
# source user modules
|
||||||
|
[ "${rwx_code_modules_user}" ] &&
|
||||||
while IFS= read -r module; do
|
while IFS= read -r module; do
|
||||||
# shellcheck disable=SC1090
|
# shellcheck disable=SC1090
|
||||||
. "${rwx_code_root}/${module}.${RWX_MAIN_EXTENSION}"
|
. "${rwx_code_root}/${module}.${RWX_MAIN_EXTENSION}"
|
||||||
|
@ -306,6 +307,7 @@ $(cat "${rwx_main_root}/${module}.${RWX_MAIN_EXTENSION}")
|
||||||
${modules_main}
|
${modules_main}
|
||||||
EOF
|
EOF
|
||||||
# cache user modules
|
# cache user modules
|
||||||
|
[ "${rwx_code_modules_user}" ] &&
|
||||||
while IFS= read -r module; do
|
while IFS= read -r module; do
|
||||||
# cache user module
|
# cache user module
|
||||||
rwx_code_cache_user="${rwx_code_cache_user}\
|
rwx_code_cache_user="${rwx_code_cache_user}\
|
||||||
|
|
|
@ -39,6 +39,7 @@ rwx_main_path="${rwx_main_root}/${rwx_main_file}"
|
||||||
#| sort
|
#| sort
|
||||||
rwx_main_find() {
|
rwx_main_find() {
|
||||||
local root="${1}"
|
local root="${1}"
|
||||||
|
[ -d "${root}" ] &&
|
||||||
find \
|
find \
|
||||||
"${root}" \
|
"${root}" \
|
||||||
-name "*.${RWX_MAIN_EXTENSION}" \
|
-name "*.${RWX_MAIN_EXTENSION}" \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue