Fixed the line to download sha1sum.txt

This commit is contained in:
Jenny Tam 2018-02-20 16:42:09 -08:00
parent 75e8417936
commit 774d2e5251

View file

@ -82,7 +82,7 @@ install:
- ps: >-
$client = New-Object Net.WebClient;
$client.Headers.Add("user-agent", "appveyor-ci-build");
$client.DownloadFile http://windows.php.net/downloads/releases/sha1sum.txt;
$client.DownloadFile('http://windows.php.net/downloads/releases/sha1sum.txt','sha1sum.txt');
If ($env:PHP_MINOR_VER -Match "latest") {
$env:PHP_VERSION=type sha1sum.txt | where { $_ -match "php-($env:PHP_MAJOR_VER\.\d+)-src" } | foreach { $matches[1] } ;
} Else {