modulecmd: bugfix in unloading a versioned module by name.

This commit is contained in:
2026-02-04 17:05:13 +01:00
parent f1fe7f10d3
commit a68763c365
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -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