shell/interactive
This commit is contained in:
parent
32b5389786
commit
f1192c0c58
1 changed files with 3 additions and 3 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue