modulecmd/libpmodules.bash: interface of compute_group_depth() changed

retrun result in a reference variable
This commit is contained in:
2022-06-30 10:44:56 +02:00
parent 44e5edeebb
commit d408a73d89
2 changed files with 13 additions and 8 deletions
+3 -1
View File
@@ -484,7 +484,9 @@ subcommand_load() {
local ol=''
find_overlay_with_group ol "${group}" || return 1
local moduledir="${OverlayInfo[${ol}:mod_root]}/${group}/${PMODULES_MODULEFILES_DIR}"
compute_group_depth "${moduledir}" || return 1
local -i depth
compute_group_depth depth "${moduledir}" || return 1
GroupDepths[${group}]=${depth}
g_env_must_be_saved='yes'
}