constants

This commit is contained in:
Marc Beninca 2024-11-18 11:41:12 +01:00
parent 7376790a30
commit 4931f47fe2
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -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() { main_commands() {
local file="${1}" local file="${1}"
@ -57,4 +64,4 @@ main_source_file() {
main_source_file "${ENV}" main_source_file "${ENV}"
main_source_directory "${HOME}/sh" main_source_directory "${SH_USER}"