From 1e5451f05992f68bb5cf81f858e9e95c60cec577 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 29 Nov 2024 18:31:49 +0100 Subject: [PATCH] main/source --- sh/main.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sh/main.sh b/sh/main.sh index 2611ebe..6376e03 100644 --- a/sh/main.sh +++ b/sh/main.sh @@ -91,7 +91,7 @@ sh_shell_interactive() { esac } -sh_source_directory() { +rwx_main_source() { local path="${1}" [ -d "${path}" ] || return 1 @@ -124,12 +124,12 @@ sh_source_directory() { # run initial steps rwx_main() { # system root - if ! sh_source_directory "${SH_ROOT}"; then + if ! rwx_main_source "${SH_ROOT}"; then _sh_main_log "Not a directory: ${SH_ROOT}" return 1 fi # user root - sh_source_directory "${SH_USER}" + rwx_main_source "${SH_USER}" # run interactive extras if sh_shell_interactive; then # check format