mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-27 10:03:08 +02:00
Merge pull request #1389 from Pmodules/1387-modulecmd-un-using-an-overlay-doesnt-remove-dirs-from-modulepath
1387 modulecmd un using an overlay doesnt remove dirs from modulepath
This commit is contained in:
@@ -2226,7 +2226,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