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
|
# context / shell
|
||||||
else
|
else
|
||||||
# run interactive extras
|
# run interactive extras
|
||||||
if rwx_shell_interactive; then
|
if rwx_main_interactive; then
|
||||||
# help
|
# help
|
||||||
rwx_log
|
rwx_log
|
||||||
rwx_code_help
|
rwx_code_help
|
||||||
|
|
|
@ -58,7 +58,7 @@ rwx_find_shell() {
|
||||||
# ╰──────┴───────╯
|
# ╰──────┴───────╯
|
||||||
|
|
||||||
# test if active shell is in interactive mode
|
# test if active shell is in interactive mode
|
||||||
rwx_shell_interactive() {
|
rwx_main_interactive() {
|
||||||
case "${-}" in
|
case "${-}" in
|
||||||
*i*) ;;
|
*i*) ;;
|
||||||
*) return 1 ;;
|
*) return 1 ;;
|
||||||
|
@ -70,7 +70,7 @@ rwx_shell_interactive() {
|
||||||
# ╰──────┴─────╯
|
# ╰──────┴─────╯
|
||||||
|
|
||||||
_rwx_main_log() {
|
_rwx_main_log() {
|
||||||
if rwx_shell_interactive; then
|
if rwx_main_interactive; then
|
||||||
[ ${#} -gt 0 ] || set -- ""
|
[ ${#} -gt 0 ] || set -- ""
|
||||||
local line
|
local line
|
||||||
for line in "${@}"; do
|
for line in "${@}"; do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue