File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ Function Set-PhpCache {
258
258
if ($_.name -match " php-$version .[0-9]+$env: PHPTS -Win32-.*-$arch .zip" ) {
259
259
return $_.name
260
260
}
261
- }
261
+ } | Select-Object - Last 1
262
262
if ($null -eq $asset ) {
263
263
throw " Asset not found"
264
264
}
@@ -268,7 +268,7 @@ Function Set-PhpCache {
268
268
if ($_ -match " php-$version .[0-9]+$env: PHPTS -Win32-.*-$arch .zip" ) {
269
269
return $_.split (' /' )[-1 ]
270
270
}
271
- }
271
+ } | Select-Object - Last 1
272
272
}
273
273
Get-File - Url $php_builder / releases/ download/ php$version / $asset - OutFile $php_dir \$asset
274
274
Set-PhpDownloadCache - Path $php_dir CurrentUser
@@ -283,7 +283,7 @@ Function Add-DebugSymbols {
283
283
if ($_.name -match " php-debug-pack-$version .[0-9]+$dev$env: PHPTS -Win32-.*-$arch .zip" ) {
284
284
return $_.name
285
285
}
286
- }
286
+ } | Select-Object - Last 1
287
287
Get-File - Url $php_builder / releases/ download/ php$version / $asset - OutFile $php_dir \$asset
288
288
Expand-Archive - Path $php_dir \$asset - DestinationPath $php_dir - Force
289
289
Get-ChildItem - Path $php_dir - Filter php_* .pdb | Move-Item - Destination $ext_dir
You can’t perform that action at this time.
0 commit comments