From 24ad8985a01dde8f8c38fb4ff12ae509acd97766 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 23 Mar 2026 10:36:29 +0100 Subject: [PATCH] fix: remove dirs from MODULEPATH when un-using overlawys fix issue: #1387 --- Pmodules/modulecmd.bash.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index 72f14df..c7dde60 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.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