Skip to content

Commit 7003167

Browse files
committed
Fix overwrite in Add-ExtensionDependencies
1 parent 669db4d commit 7003167

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extension/BuildPhpExtension/private/Add-ExtensionDependencies.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Function Add-ExtensionDependencies {
3434
$url = "https://downloads.php.net/~windows/pecl/deps/$_"
3535
Get-File -Url $url -OutFile $_
3636
Expand-Archive -Path $_ -DestinationPath "..\deps" -Force
37-
if(Test-Path "..\deps\LICENSE") {
37+
if((Test-Path "..\deps\LICENSE") -and (-not(Test-Path "..\deps\LICENSE.$library"))) {
3838
Rename-Item -Path "..\deps\LICENSE" -NewName "LICENSE.$library"
3939
}
4040
if(Test-Path "..\deps\lib\ossl-modules") {

0 commit comments

Comments
 (0)