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}"