constants
This commit is contained in:
parent
7376790a30
commit
4931f47fe2
1 changed files with 9 additions and 2 deletions
11
sh/main.sh
11
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}"
|
||||
|
|
Loading…
Reference in a new issue