main/source
This commit is contained in:
parent
24a623bd6e
commit
1e5451f059
1 changed files with 3 additions and 3 deletions
|
@ -91,7 +91,7 @@ sh_shell_interactive() {
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
sh_source_directory() {
|
rwx_main_source() {
|
||||||
local path="${1}"
|
local path="${1}"
|
||||||
[ -d "${path}" ] ||
|
[ -d "${path}" ] ||
|
||||||
return 1
|
return 1
|
||||||
|
@ -124,12 +124,12 @@ sh_source_directory() {
|
||||||
# run initial steps
|
# run initial steps
|
||||||
rwx_main() {
|
rwx_main() {
|
||||||
# system root
|
# system root
|
||||||
if ! sh_source_directory "${SH_ROOT}"; then
|
if ! rwx_main_source "${SH_ROOT}"; then
|
||||||
_sh_main_log "Not a directory: ${SH_ROOT}"
|
_sh_main_log "Not a directory: ${SH_ROOT}"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
# user root
|
# user root
|
||||||
sh_source_directory "${SH_USER}"
|
rwx_main_source "${SH_USER}"
|
||||||
# run interactive extras
|
# run interactive extras
|
||||||
if sh_shell_interactive; then
|
if sh_shell_interactive; then
|
||||||
# check format
|
# check format
|
||||||
|
|
Loading…
Reference in a new issue