From 4931f47fe2a088eaf3ece2def2dfbb42c547f50c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 18 Nov 2024 11:41:12 +0100 Subject: [PATCH] constants --- sh/main.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sh/main.sh b/sh/main.sh index a4ef43b..8081179 100644 --- a/sh/main.sh +++ b/sh/main.sh @@ -1,4 +1,11 @@ -[ -n "${ENV}" ] || export ENV="/etc/sh/main.sh" +SH_NAME="sh" + +SH_ROOT="/etc/${SH_NAME}" +SH_USER="${HOME}/${SH_NAME}" + +SH_MAIN="${SH_ROOT}/main.sh" + +[ -n "${ENV}" ] || export ENV="${SH_MAIN}" main_commands() { local file="${1}" @@ -57,4 +64,4 @@ main_source_file() { main_source_file "${ENV}" -main_source_directory "${HOME}/sh" +main_source_directory "${SH_USER}"