fix: modulecmd: incorrectly placed quotation mark fix in unuse overlay

This commit is contained in:
2026-03-27 09:31:38 +01:00
parent b7a87091c9
commit 0fd6fe2e68
+1 -1
View File
@@ -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