Commit b9ab9e7e authored by gsell's avatar gsell
Browse files

Merge branch '49-do-not-print-module-use-group-as-hint-for-hierarchical-groups' into 'master'

Resolve "do not print 'module use GROUP' as hint for hierarchical groups"

Closes #49

See merge request !19
parents 6d437495 0bf87e3e
......@@ -337,7 +337,8 @@ subcommand_load() {
output+="module use ${release}; "
fi
local group=${line[2]}
if [[ ! ":${UsedGroups}:" =~ ":${group}:" ]]; then
if [[ ! ":${UsedGroups}:" =~ ":${group}:" ]] && \
(( ${GroupDepths[${group}]} == 0 )); then
output+="module use ${group}; "
fi
output+="module load ${line[@]:3} ${line[0]}\n"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment