From 0bf87e3e66ad5b81efdb3ea6fa03d5c7b4eded73 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 17 Jun 2019 17:39:27 +0200 Subject: [PATCH] do not output hierarchical groups as hint --- Pmodules/modulecmd.bash.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index e0ff75d..6746448 100755 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.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"