fix: remove dirs from MODULEPATH when un-using overlawys

fix issue: #1387
This commit is contained in:
2026-03-23 10:36:29 +01:00
parent 1d34d6861c
commit 24ad8985a0
+1 -1
View File
@@ -2225,7 +2225,7 @@ subcommand_unuse() {
# remove root of overlay
local -- dir=''
for dir in "${modulepath[@]}"; do
[[ "${dir}" == "${OverlayInfo[${ol_name}:modulefiles_root]}" ]] && \
[[ "${dir}"/* == "${OverlayInfo[${ol_name}:modulefiles_root]}/*" ]] && \
std::remove_path MODULEPATH "${dir}"
done