modulecmd: loading multiple modules fixed

This commit is contained in:
2024-07-12 11:18:17 +02:00
parent 6eaa400f0f
commit 45df61cc9c
+1 -2
View File
@@ -712,10 +712,9 @@ subcommand_load() {
(( ${#args[@]} == 0 )) && \
die_missing_arg
IFS=':' read -r -a modulepath <<< "${MODULEPATH}"
local m=''
for m in "${args[@]}"; do
IFS=':' read -r -a modulepath <<< "${MODULEPATH}"
if [[ "$m" =~ ":" ]]; then
# extendet module name is either