Merge pull request #1388 from Pmodules/1387-modulecmd-un-using-an-overlay-doesnt-remove-dirs-from-modulepath

fix: remove dirs from MODULEPATH when un-using overlawys
This commit is contained in:
2026-03-23 11:01:39 +01:00
committed by GitHub
+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