From 33f584729376a886e7407c5ec45d3bc5862ec47a Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 5 Sep 2024 17:21:31 +0200 Subject: [PATCH] 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. --- Pmodules/modulecmd.bash.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index 53b62b1..765efcb 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -892,6 +892,8 @@ subcommand_load() { fi test -r "${deps_file}" && load_dependencies "$_" + [[ ":${LOADEDMODULES}:" == *:${m}:* ]] && continue + # load module modulecmd="${interp[${current_modulefile}]}" local output=''