modulecmd: bugfix for issue #1368 (undefined variable)

This commit is contained in:
2026-03-04 14:00:28 +01:00
parent 85d4fcdb9c
commit 2fb0e8274f
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}; "