output group in load hints, if the user has to 'load' this group first

This commit is contained in:
2019-06-11 16:11:15 +02:00
parent bae1da6207
commit 04eea80f35
+4
View File
@@ -336,6 +336,10 @@ subcommand_load() {
if [[ ! ":${UsedReleases}:" =~ "${release}" ]]; then
output+="module use ${release}; "
fi
local group=${line[2]}
if [[ ! ":${UsedGroups}:" =~ ":${group}:" ]]; then
output+="module use ${group}; "
fi
output+="module load ${line[@]:3} ${line[0]}\n"
done < <(subcommand_search "${m}" -a --no-header 2>&1)
if [[ -n "${output}" ]]; then