From c11edc243f811f1a55635592d1ab59e39e67b58c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 9 Jul 2025 00:18:57 +0200 Subject: [PATCH] main/interactive --- sh/core/code.sh | 2 +- sh/main.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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