find symlinked commands when generating help list

redis
Nate Jones 2012-08-03 13:46:43 -07:00
parent b2a3509e63
commit 31166e1e1c
1 changed files with 1 additions and 1 deletions

View File

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