mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-29 18:59:39 +02:00
modulecmd.bash.in: subcommand_load(): update Dir2OverlayMap
- after loading a module the dictionary mapping a directory to an overlay must be updated if a new hierarchical group was added
This commit is contained in:
@@ -646,7 +646,9 @@ subcommand_load() {
|
||||
while read dir; do
|
||||
[[ "${dir: -1}" == "/" ]] || dir+="/"
|
||||
LOADEDMODULES="${LOADEDMODULES//${dir}}"
|
||||
get_overlay_of_moduledir overlay "${dir}"
|
||||
done <<< "${MODULEPATH//:/$'\n'}"
|
||||
g_env_must_be_saved='yes'
|
||||
export_env 'LOADEDMODULES'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user