Skip to content

Commit

Permalink
'help' command barfage fix
Browse files Browse the repository at this point in the history
should not barf if LOCAL_CODE is defined but it doesn't contain a
"commands" subdirectory.
  • Loading branch information
sitaramc committed Aug 30, 2012
1 parent ed4862f commit aec8c71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/commands/help
Expand Up @@ -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`;
}

0 comments on commit aec8c71

Please sign in to comment.