mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-27 01:53:08 +02:00
Merge pull request #1370 from Pmodules/1368-modulecmd-undefined-groupdepthsgroup-in-function-get_load_hints
modulecmd: bugfix for issue #1368 (undefined variable)
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
# Changelog of Pmodules
|
||||
|
||||
## Version 2.1.0
|
||||
### modulecmd
|
||||
* Bugfix: Under some conditions it could happen, that the variable
|
||||
GroupDepths($group) was undefined in the function get\_load\_hints().
|
||||
(#1368)
|
||||
|
||||
## Version 2.0.5
|
||||
### modulecmd
|
||||
|
||||
## Version 2.0.4
|
||||
|
||||
### modulecmd
|
||||
|
||||
@@ -809,6 +809,8 @@ subcommand_load() {
|
||||
fi
|
||||
local -- group=${line[2]}
|
||||
[[ "${group}" != 'none' ]] || continue
|
||||
[[ -v GroupDepths[${group}] ]] || \
|
||||
scan_groups "${UsedOverlays[@]}"
|
||||
if [[ ! ":${UsedGroups}:" == *:${group}:* ]] && \
|
||||
(( ${GroupDepths[${group}]} == 0 )); then
|
||||
output+="module use ${group}; "
|
||||
|
||||
Reference in New Issue
Block a user