Skip to content

Commit 11e80ad

Browse files
committed
Fix null/empty check in Invoke-PhpBuild.ps1
1 parent 45f82d5 commit 11e80ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

php/BuildPhp/public/Invoke-PhpBuild.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function Invoke-PhpBuild {
5959
New-Item "..\obj" -ItemType "directory" > $null 2>&1
6060
Copy-Item "..\config.$Ts.bat"
6161

62-
if($null -ne $env:LIBS_BUILD_RUNS) {
62+
if(-not [string]::IsNullOrWhiteSpace($env:LIBS_BUILD_RUNS)) {
6363
Add-PhpDeps -PhpVersion $PhpVersion -VsVersion $VsConfig.vs -Arch $Arch -Destination "$buildPath\..\deps"
6464
$task = "$PSScriptRoot\..\runner\task-$Ts.bat"
6565
} else {

0 commit comments

Comments
 (0)