modulecmd: cleanup in 1.1.22 after cherry-picking

This commit is contained in:
2024-08-29 15:35:34 +02:00
parent 6c6227e3ea
commit 378d7e8ac8
-4
View File
@@ -798,10 +798,6 @@ subcommand_load() {
fi
local m=''
if [[ ! -v LOADEDMODULES ]]; then
LOADEDMODULES=''
_LMFILES_=''
fi
for m in "${args[@]}"; do
IFS=':' read -r -a modulepath <<< "${MODULEPATH}"
if [[ "$m" == *:* ]]; then