Skip to content

Commit f819841

Browse files
committed
Fix selecting config.w32 for repos with multiple ones
1 parent 8ff6c51 commit f819841

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extension/BuildPhpExtension/private/Get-Extension.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function Get-Extension {
7575
}
7676
}
7777

78-
$configW32 = Get-ChildItem (Get-Location).Path -Recurse -Filter "config.w32" -ErrorAction SilentlyContinue
78+
$configW32 = Get-ChildItem (Get-Location).Path -Recurse -Filter "config.w32" -ErrorAction SilentlyContinue | Select-Object -First 1
7979
if($null -eq $configW32) {
8080
if($LocalSrc) {
8181
throw "No config.w32 found, please make sure you are in the extension source directory and it supports Windows."

0 commit comments

Comments
 (0)