mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-28 02:19:39 +02:00
Merge branch '373-build-system-overwrite-pmodules-system-config-file-location-with-env-variable' into 'master'
Resolve "build-system: overwrite Pmodules system config file location with env. variable" Closes #373 See merge request Pmodules/src!386
This commit is contained in:
@@ -271,7 +271,10 @@ pm::read_config(){
|
||||
Overlays=()
|
||||
|
||||
# system config file
|
||||
local -r sys_config_file="${PMODULES_HOME%%/Tools*}/config/Pmodules.yaml"
|
||||
local -- sys_config_file="${PMODULES_HOME%%/Tools*}/config/Pmodules.yaml"
|
||||
if [[ -v PMODULES_CONFIG_FILE && -n "${PMODULES_CONFIG_FILE}" ]]; then
|
||||
sys_config_file="${PMODULES_HOME%%/Tools*}/config/${PMODULES_CONFIG_FILE}"
|
||||
fi
|
||||
test -r "${sys_config_file}" || \
|
||||
std::die 3 \
|
||||
"%s %s -- %s" \
|
||||
|
||||
Reference in New Issue
Block a user