Check for the executable $openssl, not just the file.
Part of PR: 75
This commit is contained in:
parent
e888074bb4
commit
127dca46a0
1 changed files with 2 additions and 2 deletions
|
@ -17,10 +17,10 @@ if(defined $ENV{OPENSSL}) {
|
||||||
|
|
||||||
$ENV{PATH} .= ":$dir/bin";
|
$ENV{PATH} .= ":$dir/bin";
|
||||||
|
|
||||||
if(! -f $openssl) {
|
if(! -x $openssl) {
|
||||||
my $found = 0;
|
my $found = 0;
|
||||||
foreach (split /:/, $ENV{PATH}) {
|
foreach (split /:/, $ENV{PATH}) {
|
||||||
if(-f "$_/$openssl") {
|
if(-x "$_/$openssl") {
|
||||||
$found = 1;
|
$found = 1;
|
||||||
last;
|
last;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue