mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-27 01:53:08 +02:00
modulecmd: bugfix Lmod modules couldn'd be loaded
This commit is contained 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
|
||||
|
||||
Reference in New Issue
Block a user