download-from-binary-cache.pl: Respect $SSL_CERT_FILE

This commit is contained in:
Eelco Dolstra 2014-08-07 22:41:15 +02:00
parent 4a198dae74
commit 393a9b92b1

View file

@ -38,7 +38,7 @@ my $activeRequests = 0;
my $curlIdCount = 1; my $curlIdCount = 1;
my %requests; my %requests;
my %scheduled; my %scheduled;
my $caBundle = $ENV{"CURL_CA_BUNDLE"} // $ENV{"OPENSSL_X509_CERT_FILE"}; my $caBundle = $ENV{"SSL_CERT_FILE"} // $ENV{"CURL_CA_BUNDLE"} // $ENV{"OPENSSL_X509_CERT_FILE"};
my $userName = getpwuid($<) || $ENV{"USER"} or die "cannot figure out user name"; my $userName = getpwuid($<) || $ENV{"USER"} or die "cannot figure out user name";