source/root
This commit is contained in:
parent
428b3dbe4d
commit
706847f746
1 changed files with 5 additions and 5 deletions
10
sh/main.sh
10
sh/main.sh
|
@ -59,18 +59,18 @@ rwx_main() {
|
|||
|
||||
# source code from file path
|
||||
rwx_source() {
|
||||
local path="${1}"
|
||||
[ -d "${path}" ] ||
|
||||
local root="${1}"
|
||||
[ -d "${root}" ] ||
|
||||
return 1
|
||||
local count module
|
||||
count=0
|
||||
__rwx_log "" \
|
||||
". ${path}"
|
||||
". ${root}"
|
||||
rwx_ifs_set
|
||||
for module in $(rwx_find_shell "${path}" "${RWX_MAIN_NAME}"); do
|
||||
for module in $(rwx_find_shell "${root}" "${RWX_MAIN_NAME}"); do
|
||||
count=$((count + 1))
|
||||
__rwx_log "$(printf "%02d" "${count}") ${module%.sh}"
|
||||
module="${path}/${module}"
|
||||
module="${root}/${module}"
|
||||
# shellcheck disable=SC1090
|
||||
. "${module}"
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue