diff --git a/sh/main.sh b/sh/main.sh index f7df12d..3ddc530 100755 --- a/sh/main.sh +++ b/sh/main.sh @@ -31,18 +31,6 @@ RWX_SELF_USER="${HOME}/${RWX_SELF_NAME}" RWX_MAIN_PATH="${RWX_ROOT_SYSTEM}/${RWX_MAIN_NAME}" -# ╭──────┬───────╮ -# │ main │ shell │ -# ╰──────┴───────╯ - -# test if active shell is in interactive mode -rwx_shell_interactive() { - case "${-}" in - *i*) ;; - *) return 1 ;; - esac -} - # ╭──────┬──────╮ # │ main │ find │ # ╰──────┴──────╯ @@ -87,6 +75,18 @@ rwx_ifs_unset() { unset RWX_IFS } +# ╭──────┬───────╮ +# │ main │ shell │ +# ╰──────┴───────╯ + +# test if active shell is in interactive mode +rwx_shell_interactive() { + case "${-}" in + *i*) ;; + *) return 1 ;; + esac +} + # ╭──────┬─────╮ # │ main │ log │ # ╰──────┴─────╯