From d2556b373fa07c691c814bdadf0ed670cbebbc2e Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Wed, 9 Apr 2025 16:53:38 +0200 Subject: [PATCH] modulecmd: bugfix Lmod modules couldn'd be loaded --- 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 9039848..ae07e3f 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -1301,7 +1301,7 @@ get_available_modules() { [[ "${mod,,}" =~ ${pattern,,} ]] || continue else if [[ "${pattern}" == */* ]]; then - [[ "${mod}" == ${pattern} ]] || continue + [[ "${mod}" == ${pattern} || "${mod}" == ${pattern}.lua ]] || continue else [[ "${mod%/*}" == ${pattern} ]] || continue fi