scripts/Bootstrap/Pmodules/modulecmd.in: bugfix: get_family() now returns empty string, if no modulefiles are installed
This commit is contained in:
@@ -668,10 +668,14 @@ subcommand_avail() {
|
||||
}
|
||||
|
||||
get_families () {
|
||||
if [[ ! -d "${modulepath_root}" ]]; then
|
||||
echo ""
|
||||
else
|
||||
{
|
||||
cd "${modulepath_root}"
|
||||
echo *
|
||||
ls -1
|
||||
}
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user