diff --git a/sh/core/code.sh b/sh/core/code.sh index 0dec949..2908f7c 100644 --- a/sh/core/code.sh +++ b/sh/core/code.sh @@ -247,7 +247,7 @@ rwx_code_main() { # context / shell else # run interactive extras - if rwx_shell_interactive; then + if rwx_main_interactive; then # help rwx_log rwx_code_help diff --git a/sh/main.sh b/sh/main.sh index a7240fc..a8d1321 100755 --- a/sh/main.sh +++ b/sh/main.sh @@ -58,7 +58,7 @@ rwx_find_shell() { # ╰──────┴───────╯ # test if active shell is in interactive mode -rwx_shell_interactive() { +rwx_main_interactive() { case "${-}" in *i*) ;; *) return 1 ;; @@ -70,7 +70,7 @@ rwx_shell_interactive() { # ╰──────┴─────╯ _rwx_main_log() { - if rwx_shell_interactive; then + if rwx_main_interactive; then [ ${#} -gt 0 ] || set -- "" local line for line in "${@}"; do