From e9904f2965ea44cf41f9f786a7e7780d9f44ac53 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 25 Nov 2024 15:09:58 +0100 Subject: [PATCH] main/name --- sh/main.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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=" "