Skip to content
Browse files

'help' command barfage fix

should not barf if LOCAL_CODE is defined but it doesn't contain a
"commands" subdirectory.
  • Loading branch information...
1 parent ed4862f commit aec8c718908b77e9b3d745f927689b391c9e833f @sitaramc committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/commands/help
View
1 src/commands/help
@@ -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.
Something went wrong with that request. Please try again.