'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:
parent
ed4862ff96
commit
aec8c71890
|
@ -36,6 +36,7 @@ exit 0;
|
||||||
sub list_x {
|
sub list_x {
|
||||||
my $d = shift;
|
my $d = shift;
|
||||||
return unless $d;
|
return unless $d;
|
||||||
|
return unless -d "$d/commands";
|
||||||
_chdir "$d/commands";
|
_chdir "$d/commands";
|
||||||
return map { $_ => $d } grep { -x $_ } map { chomp; s(^./)(); $_ } `find . -type f -o -type l|sort`;
|
return map { $_ => $d } grep { -x $_ } map { chomp; s(^./)(); $_ } `find . -type f -o -type l|sort`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue