main/name

This commit is contained in:
Marc Beninca 2024-11-25 15:09:58 +01:00
parent 8fb0750b59
commit e9904f2965
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,10 +1,11 @@
SH_MAIN_NAME="main.sh"
SH_NAME="sh"
SH_SHELL="$(cat /proc/${$}/comm)"
SH_ROOT="/etc/${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}"
@ -62,7 +63,7 @@ main_source_directory() {
local path="${1}"
if [ -d "${path}" ]; then
local cmd count ifs module modules
modules="$(sh_source_find "${path}" "main.sh")"
modules="$(sh_source_find "${path}" "${SH_MAIN_NAME}")"
ifs="${IFS}"
IFS="
"