modulecmd: bugfix in loading multiple modules in same call of module

If more than one module is passed to the module function, loading
failed if one of the modules is already loaded as dependency.
This commit is contained in:
2024-09-05 17:21:31 +02:00
parent fdc09cdbbc
commit 33f5847293
+2
View File
@@ -892,6 +892,8 @@ subcommand_load() {
fi
test -r "${deps_file}" && load_dependencies "$_"
[[ ":${LOADEDMODULES}:" == *:${m}:* ]] && continue
# load module
modulecmd="${interp[${current_modulefile}]}"
local output=''