From f1192c0c58cbf4717de5d9e607df4e4d1dcf61fd Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 29 Nov 2024 18:48:21 +0100 Subject: [PATCH] shell/interactive --- sh/main.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sh/main.sh b/sh/main.sh index dbba6c3..b8ed82d 100644 --- a/sh/main.sh +++ b/sh/main.sh @@ -32,7 +32,7 @@ _sh_ifs_pop() { } _rwx_main_log() { - if sh_shell_interactive; then + if rwx_shell_interactive; then [ ${#} -gt 0 ] || set -- "" local line for line in "${@}"; do @@ -84,7 +84,7 @@ rwx_help() { } # test if active shell is in interactive mode -sh_shell_interactive() { +rwx_shell_interactive() { case "${-}" in *i*) ;; *) return 1 ;; @@ -131,7 +131,7 @@ rwx_main() { # user root rwx_main_source "${SH_USER}" # run interactive extras - if sh_shell_interactive; then + if rwx_shell_interactive; then # check format sh_log rwx_shfmt_check "${SH_ROOT}"