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:
2026-03-04 14:10:15 +01:00
committed by GitHub
2 changed files with 11 additions and 0 deletions
+9
View File
@@ -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
+2
View File
@@ -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}; "