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

--- Bug Fixes ----------------------------

- load static config files in all scwrypts contexts; not just groups
This commit is contained in:
Wryn (yage) Wagner 2023-08-18 12:40:14 -06:00
parent e0cbf58b3c
commit 3ea2e0cd8f

9
run
View File

@ -215,15 +215,16 @@ __RUN() {
do do
local ENV_FILE=$(SCWRYPTS__GET_ENV_FILE "$ENV_NAME" "$GROUP") local ENV_FILE=$(SCWRYPTS__GET_ENV_FILE "$ENV_NAME" "$GROUP")
source "$ENV_FILE" || FAIL 5 "missing or invalid environment '$GROUP/$ENV_NAME'" source "$ENV_FILE" || FAIL 5 "missing or invalid environment '$GROUP/$ENV_NAME'"
for f in $(eval 'echo $SCWRYPTS_STATIC_CONFIG__'$GROUP)
do
source "$f" || FAIL 5 "invalid static config '$f'"
done
done done
export ENV_NAME export ENV_NAME
} }
for f in $(eval 'echo $SCWRYPTS_STATIC_CONFIG__'$SCWRYPT_GROUP)
do
source "$f" || FAIL 5 "invalid static config '$f'"
done
########################################## ##########################################