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() {
|
_rwx_main_log() {
|
||||||
if sh_shell_interactive; then
|
if rwx_shell_interactive; then
|
||||||
[ ${#} -gt 0 ] || set -- ""
|
[ ${#} -gt 0 ] || set -- ""
|
||||||
local line
|
local line
|
||||||
for line in "${@}"; do
|
for line in "${@}"; do
|
||||||
|
@ -84,7 +84,7 @@ rwx_help() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# test if active shell is in interactive mode
|
# test if active shell is in interactive mode
|
||||||
sh_shell_interactive() {
|
rwx_shell_interactive() {
|
||||||
case "${-}" in
|
case "${-}" in
|
||||||
*i*) ;;
|
*i*) ;;
|
||||||
*) return 1 ;;
|
*) return 1 ;;
|
||||||
|
@ -131,7 +131,7 @@ rwx_main() {
|
||||||
# user root
|
# user root
|
||||||
rwx_main_source "${SH_USER}"
|
rwx_main_source "${SH_USER}"
|
||||||
# run interactive extras
|
# run interactive extras
|
||||||
if sh_shell_interactive; then
|
if rwx_shell_interactive; then
|
||||||
# check format
|
# check format
|
||||||
sh_log
|
sh_log
|
||||||
rwx_shfmt_check "${SH_ROOT}"
|
rwx_shfmt_check "${SH_ROOT}"
|
||||||
|
|
Loading…
Reference in a new issue