'help' command barfage fix

should not barf if LOCAL_CODE is defined but it doesn't contain a
"commands" subdirectory.
This commit is contained in:
Sitaram Chamarty 2012-08-30 18:40:24 +05:30
parent ed4862ff96
commit aec8c71890

View file

@ -36,6 +36,7 @@ exit 0;
sub list_x {
my $d = shift;
return unless $d;
return unless -d "$d/commands";
_chdir "$d/commands";
return map { $_ => $d } grep { -x $_ } map { chomp; s(^./)(); $_ } `find . -type f -o -type l|sort`;
}