main/log
This commit is contained in:
parent
1e5451f059
commit
32b5389786
1 changed files with 4 additions and 4 deletions
|
@ -31,7 +31,7 @@ _sh_ifs_pop() {
|
|||
unset SH_IFS
|
||||
}
|
||||
|
||||
_sh_main_log() {
|
||||
_rwx_main_log() {
|
||||
if sh_shell_interactive; then
|
||||
[ ${#} -gt 0 ] || set -- ""
|
||||
local line
|
||||
|
@ -99,11 +99,11 @@ rwx_main_source() {
|
|||
modules="$(sh_find_sh "${path}" "${SH_MAIN_NAME}")"
|
||||
_sh_ifs_new
|
||||
count=0
|
||||
_sh_main_log "" \
|
||||
_rwx_main_log "" \
|
||||
". ${path}"
|
||||
for module in ${modules}; do
|
||||
count=$((count + 1))
|
||||
_sh_main_log "$(printf "%02d" "${count}") ${module%.sh}"
|
||||
_rwx_main_log "$(printf "%02d" "${count}") ${module%.sh}"
|
||||
module="${path}/${module}"
|
||||
# shellcheck disable=SC1090
|
||||
. "${module}"
|
||||
|
@ -125,7 +125,7 @@ rwx_main_source() {
|
|||
rwx_main() {
|
||||
# system root
|
||||
if ! rwx_main_source "${SH_ROOT}"; then
|
||||
_sh_main_log "Not a directory: ${SH_ROOT}"
|
||||
_rwx_main_log "Not a directory: ${SH_ROOT}"
|
||||
return 1
|
||||
fi
|
||||
# user root
|
||||
|
|
Loading…
Reference in a new issue