mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-29 18:59:39 +02:00
modulecmd: bugfix in unloading a versioned module by name.
This commit is contained in:
@@ -1082,6 +1082,7 @@ subcommand_unload() {
|
||||
# is the module loaded?
|
||||
for lmfile in "${_lmfiles_[@]}" '_zzzz_'; do
|
||||
[[ /${lmfile} =~ /${arg}$ ]] && break
|
||||
[[ /${lmfile} =~ /${arg}/.* ]] && break
|
||||
done
|
||||
[[ "${lmfile}" == '_zzzz_' ]] && continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user