diff --git a/scripts/Bootstrap/Pmodules/modulecmd.in b/scripts/Bootstrap/Pmodules/modulecmd.in index a3bf931..e1e40d8 100755 --- a/scripts/Bootstrap/Pmodules/modulecmd.in +++ b/scripts/Bootstrap/Pmodules/modulecmd.in @@ -668,10 +668,14 @@ subcommand_avail() { } get_families () { + if [[ ! -d "${modulepath_root}" ]]; then + echo "" + else { cd "${modulepath_root}" - echo * + ls -1 } + fi } #