'help' command barfage fix

should not barf if LOCAL_CODE is defined but it doesn't contain a
"commands" subdirectory.
redis
Sitaram Chamarty 2012-08-30 18:40:24 +05:30
parent ed4862ff96
commit aec8c71890
1 changed files with 1 additions and 0 deletions

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`;
}