diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index 65e980e..4d089e3 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -1135,7 +1135,7 @@ find_modulefile() { "${dir}" \ "${mod}" # don't load modules with unused release stages - if [[ :${fm_rel_stage}: =~ :${UsedReleaseStages}: ]]; then + if [[ :${UsedReleaseStages}: =~ :${fm_rel_stage}: ]]; then fm_modulefile="${dir}/${mod}" fm_dir="${dir}" return 0