main/interactive
This commit is contained in:
parent
e9b57b693c
commit
c11edc243f
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue