From 32b5389786152824f0ac22bb045e3c6f8b981fe7 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 29 Nov 2024 18:46:52 +0100 Subject: [PATCH] main/log --- sh/main.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sh/main.sh b/sh/main.sh index 6376e03..dbba6c3 100644 --- a/sh/main.sh +++ b/sh/main.sh @@ -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