modulecmd: set group depth to 0 for modules outside the hierarchy

This commit is contained in:
2024-08-13 15:22:33 +02:00
parent 0ec0ce40ac
commit 09fe3894d6
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -626,6 +626,7 @@ subcommand_load() {
output+="module use ${relstage}; "
fi
local group=${line[2]}
[[ "${group}" != 'none' ]] || continue
if [[ ! ":${UsedGroups}:" == *:${group}:* ]] && \
(( ${GroupDepths[${group}]} == 0 )); then
output+="module use ${group}; "