diff --git a/scripts/mk-ca-bundle.pl b/scripts/mk-ca-bundle.pl index 83027a4893..097171059b 100755 --- a/scripts/mk-ca-bundle.pl +++ b/scripts/mk-ca-bundle.pl @@ -136,8 +136,6 @@ else { $url = $opt_d; } -my $curl = `curl -V`; - if ($opt_i) { print ("=" x 78 . "\n"); print "Script Version : $version\n"; @@ -314,6 +312,7 @@ if(!$opt_n) { # If we have an HTTPS URL then use curl if($url =~ /^https:\/\//i) { + my $curl = `curl -V`; if($curl) { if($curl =~ /^Protocols:.* https( |$)/m) { report "Get certdata with curl!";