Skip to content

Commit

Permalink
In Makefile.PL run mysql_config without params and check if op `` ret…
Browse files Browse the repository at this point in the history
…urns defined value

False value is evaluated also in case mysql_config returns empty string on stdout.
  • Loading branch information
pali authored and mbeijen committed Feb 12, 2018
1 parent 6e609b3 commit d28035f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ my $source = {};
{
$opt->{'mysql_config'} = Win32::GetShortPathName($opt->{'mysql_config'})
if $^O eq 'MSWin32';
if (! defined `$opt->{'mysql_config'} --version`)
if (! defined `$opt->{'mysql_config'}`)
{
print <<"MSG";
Expand All @@ -86,7 +86,7 @@ MSG
}
else
{
if (! `mysql_config`)
if (! defined `mysql_config`)
{
print <<MSG;
Expand Down

0 comments on commit d28035f

Please sign in to comment.