mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-28 02:19:39 +02:00
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 Pmodules/src!19
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user