=====================================================================

--- New Features -------------------------

- `__override` variables now allow values to be force-overwritten
This commit is contained in:
2023-01-11 17:09:59 -07:00
parent a1256bb0af
commit 187a467092
2 changed files with 11 additions and 0 deletions

View File

@ -8,6 +8,9 @@ __CHECK_ENV_VAR() {
local NAME="$1"
[ ! $NAME ] && return 1
local OVERRIDE_VALUE=$(eval echo '$'$NAME'__override')
[ $OVERRIDE_VALUE ] && export $NAME=$OVERRIDE_VALUE && return 0
local OPTIONAL="$2"
local DEFAULT_VALUE="$3"