mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-30 19:29:38 +02:00
Merge branch '48-output-group-in-load-hints' into 'master'
Resolve "output group in load hints" Closes #48 See merge request Pmodules/src!18
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user