diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index 2ee1448..f4ca8b1 100755 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -948,6 +948,7 @@ get_available_modules2() { local -r module="$2" local -r use_releases="${3:-${UsedReleases}}" local -a mods=() + test -d "${dir}" || return 0 { cd "${dir}" while read mod; do