From ab9edd13b06274341f7a6ab6d8c42bf3c86ae9f9 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 15 Jun 2015 14:54:02 +0200 Subject: [PATCH] scripts/Bootstrap/Pmodules/modulecmd.in: bugfixes in subcommand_unuse() --- scripts/Bootstrap/Pmodules/modulecmd.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Bootstrap/Pmodules/modulecmd.in b/scripts/Bootstrap/Pmodules/modulecmd.in index 38e8220..2b57862 100755 --- a/scripts/Bootstrap/Pmodules/modulecmd.in +++ b/scripts/Bootstrap/Pmodules/modulecmd.in @@ -1091,7 +1091,7 @@ subcommand_unuse() { # ... # elif is directory # ... - local modulfiles_dir="${PMODULES_ROOT}/${arg}/${PMODULES_MODULEFILES_DIR}" + local modulefiles_dir="${PMODULES_ROOT}/${arg}/${PMODULES_MODULEFILES_DIR}" if is_release "${arg}"; then remove_path UsedReleases "${arg}" elif [[ ! ${arg} =~ */* ]] && [[ -d ${modulefiles_dir} ]]; then @@ -1099,7 +1099,7 @@ subcommand_unuse() { die 3 "${CMD} ${0##_}: cannot remove group ${arg} from module path" fi remove_path PMODULES_USED_GROUPS "${arg}" - dirs_to_remove+=( ${modulefiles_dir}/${arg} ) + dirs_to_remove+=( ${modulefiles_dir} ) elif [[ -d ${arg} ]]; then local normalized_dir=$(cd "${arg}" && pwd) dirs_to_remove+=( ${normalized_dir} )