mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-27 01:53:08 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user