scripts/Bootstrap/Pmodules/modulecmd.in: bugfix: get_family() now returns empty string, if no modulefiles are installed

This commit is contained in:
2015-03-12 17:04:51 +01:00
parent f432e05df9
commit 8468c84b76

View File

@@ -668,10 +668,14 @@ subcommand_avail() {
}
get_families () {
if [[ ! -d "${modulepath_root}" ]]; then
echo ""
else
{
cd "${modulepath_root}"
echo *
ls -1
}
fi
}
#