main/interactive

This commit is contained in:
Marc Beninca 2025-07-09 00:18:57 +02:00
parent e9b57b693c
commit c11edc243f
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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