main/shell
This commit is contained in:
parent
19249747c0
commit
aadfe212c2
1 changed files with 12 additions and 12 deletions
24
sh/main.sh
24
sh/main.sh
|
@ -37,18 +37,6 @@ RWX_SELF_USER="${HOME}/${RWX_SELF_NAME}"
|
||||||
# path to the entrypoint main file of the project
|
# path to the entrypoint main file of the project
|
||||||
RWX_MAIN_PATH="${RWX_ROOT_SYSTEM}/${RWX_MAIN_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 │
|
# │ main │ find │
|
||||||
# ╰──────┴──────╯
|
# ╰──────┴──────╯
|
||||||
|
@ -78,6 +66,18 @@ rwx_find_shell() {
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
# ╭──────┬───────╮
|
||||||
|
# │ main │ shell │
|
||||||
|
# ╰──────┴───────╯
|
||||||
|
|
||||||
|
# test if active shell is in interactive mode
|
||||||
|
rwx_shell_interactive() {
|
||||||
|
case "${-}" in
|
||||||
|
*i*) ;;
|
||||||
|
*) return 1 ;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
# ╭──────┬─────╮
|
# ╭──────┬─────╮
|
||||||
# │ main │ log │
|
# │ main │ log │
|
||||||
# ╰──────┴─────╯
|
# ╰──────┴─────╯
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue