mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-28 10:29:37 +02:00
Merge pull request #1324 from Pmodules/1316-misleading-message---pmodules-version-202
modulecmd: better error message if configuration file is not readable
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
## Version 2.0.3
|
||||
|
||||
### modulecmd
|
||||
* Misleading error message fix if system configuration file is not
|
||||
readable.
|
||||
(#1316)
|
||||
|
||||
### build system
|
||||
* set CC and CXX if not defined. This was a bug introduced in 2.0.2
|
||||
|
||||
@@ -451,10 +451,11 @@ pm::read_config(){
|
||||
if [[ -v PMODULES_CONFIG_FILE && -n "${PMODULES_CONFIG_FILE}" ]]; then
|
||||
sys_config_file="${PMODULES_HOME%%/Tools*}/config/${PMODULES_CONFIG_FILE}"
|
||||
fi
|
||||
sys_config_file=$(readlink "${sys_config_file}")
|
||||
test -r "${sys_config_file}" || \
|
||||
std::die 3 \
|
||||
"%s %s -- %s" \
|
||||
"base overlay definition file" \
|
||||
"Configuration file " \
|
||||
"does not exist or is not readable" \
|
||||
"$_"
|
||||
DefaultGroups="${DefaultPmodulesConfig['default_groups']}"
|
||||
|
||||
Reference in New Issue
Block a user