diff --git a/sh/main.sh b/sh/main.sh index 7b3fe28..3ee4c6f 100644 --- a/sh/main.sh +++ b/sh/main.sh @@ -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=" "