main/name
This commit is contained in:
parent
8fb0750b59
commit
e9904f2965
1 changed files with 3 additions and 2 deletions
|
@ -1,10 +1,11 @@
|
||||||
|
SH_MAIN_NAME="main.sh"
|
||||||
SH_NAME="sh"
|
SH_NAME="sh"
|
||||||
SH_SHELL="$(cat /proc/${$}/comm)"
|
SH_SHELL="$(cat /proc/${$}/comm)"
|
||||||
|
|
||||||
SH_ROOT="/etc/${SH_NAME}"
|
SH_ROOT="/etc/${SH_NAME}"
|
||||||
SH_USER="${HOME}/${SH_NAME}"
|
SH_USER="${HOME}/${SH_NAME}"
|
||||||
|
|
||||||
SH_MAIN="${SH_ROOT}/main.sh"
|
SH_MAIN="${SH_ROOT}/${SH_MAIN_NAME}"
|
||||||
|
|
||||||
[ -n "${ENV}" ] || export ENV="${SH_MAIN}"
|
[ -n "${ENV}" ] || export ENV="${SH_MAIN}"
|
||||||
|
|
||||||
|
@ -62,7 +63,7 @@ main_source_directory() {
|
||||||
local path="${1}"
|
local path="${1}"
|
||||||
if [ -d "${path}" ]; then
|
if [ -d "${path}" ]; then
|
||||||
local cmd count ifs module modules
|
local cmd count ifs module modules
|
||||||
modules="$(sh_source_find "${path}" "main.sh")"
|
modules="$(sh_source_find "${path}" "${SH_MAIN_NAME}")"
|
||||||
ifs="${IFS}"
|
ifs="${IFS}"
|
||||||
IFS="
|
IFS="
|
||||||
"
|
"
|
||||||
|
|
Loading…
Reference in a new issue