Skip to content

Commit ba53591

Browse files
authored
Fix Appveyor pipeline (#1379)
1 parent 2bf5501 commit ba53591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ install:
7373
$client.Headers.Add("user-agent", "appveyor-ci-build2");
7474
$client.DownloadFile("http://windows.php.net/downloads/releases/sha256sum.txt", "c:\projects\sha256sum.txt");
7575
If ($env:PHP_MINOR_VER -Match "latest") {
76-
$env:PHP_VERSION=type c:\projects\sha256sum.txt | where { $_ -match "php-($env:PHP_MAJOR_VER\.\d+)-src" } | foreach { $matches[1] } ;
76+
$env:PHP_VERSION=type c:\projects\sha256sum.txt | where { $_ -match "php-($env:PHP_MAJOR_VER\.\d+)-src" } | foreach { $matches[1] } | Select -First 1 ;
7777
} Else {
7878
$env:PHP_VERSION=$env:PHP_MAJOR_VER + '.' + $env:PHP_MINOR_VER;
7979
}

0 commit comments

Comments
 (0)