Skip to content

Commit

Permalink
Don't find find2perl in local::lib root if it's not there #220
Browse files Browse the repository at this point in the history
  • Loading branch information
briandfoy committed Jul 29, 2023
1 parent eed597c commit 6be17fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/PerlPowerTools.pm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package PerlPowerTools;

our $VERSION = '1.036_001';
our $VERSION = '1.036_002';

1;

Expand Down
3 changes: 1 addition & 2 deletions t/find/find.t
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ HERE

diag( "find2perl is at <$find2perl>" );


subtest check_find2perl => \&check_find, "find2perl", $find2perl;
subtest check_find => \&check_find, "find", $find;

Expand Down Expand Up @@ -93,7 +92,7 @@ sub find_find2perl {
split( /$Config{path_sep}/, $ENV{PATH} ),
;

push @candidates, catfile( $ENV{PERL_LOCAL_LIB_ROOT}, 'bin', 'find2perl' )
push @candidates, grep { -e } ( catfile( $ENV{PERL_LOCAL_LIB_ROOT}, 'bin', 'find2perl' ) )
if defined $ENV{PERL_LOCAL_LIB_ROOT};

return defined $candidates[0] ? $candidates[0] : ();
Expand Down

0 comments on commit 6be17fe

Please sign in to comment.