−count
This commit is contained in:
parent
99de96a393
commit
d0d0f0c21d
1 changed files with 1 additions and 4 deletions
|
@ -81,15 +81,12 @@ rwx_main_source() {
|
||||||
local root="${1}"
|
local root="${1}"
|
||||||
[ -d "${root}" ] ||
|
[ -d "${root}" ] ||
|
||||||
return 1
|
return 1
|
||||||
local count module modules
|
local module modules
|
||||||
count=0
|
|
||||||
_rwx_main_log "" \
|
_rwx_main_log "" \
|
||||||
". ${root}"
|
". ${root}"
|
||||||
modules="$(rwx_main_find "${root}")"
|
modules="$(rwx_main_find "${root}")"
|
||||||
while IFS= read -r module; do
|
while IFS= read -r module; do
|
||||||
if [ "${module}" != "${RWX_MAIN_NAME}" ]; then
|
if [ "${module}" != "${RWX_MAIN_NAME}" ]; then
|
||||||
count=$((count + 1))
|
|
||||||
_rwx_main_log "$(printf "%02d" "${count}") ${module}"
|
|
||||||
# shellcheck disable=SC1090
|
# shellcheck disable=SC1090
|
||||||
. "${root}/${module}.${RWX_MAIN_EXTENSION}"
|
. "${root}/${module}.${RWX_MAIN_EXTENSION}"
|
||||||
# cache code
|
# cache code
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue