From 87f7ab7c5cd965b7242cbd6857629809c233d4e2 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Tue, 2 Feb 2021 17:23:10 +0100 Subject: [PATCH] bugfix in unuse overlay - remove trailing slash if set --- Pmodules/modulecmd.bash.in | 1 + 1 file changed, 1 insertion(+) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index 862990f..1d76269 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -1435,6 +1435,7 @@ subcommand_unuse() { unuse() { unuse_overlay() { overlay=${overlay%:*} # ignore any modifier + overlay=${overlay%/} # remove trailing '/' if there is one [[ -d "${overlay}" ]] || \ std::die 3 "%s %s: %s -- %s\n" \ "${CMD}" "${subcommand}" \