From fd2392db56b031282c2076df851617622e478c21 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sun, 26 Jan 2020 17:21:04 +0530 Subject: [PATCH] Fix check for testing tools setup --- src/scripts/win32.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/win32.ps1 b/src/scripts/win32.ps1 index 74e1577e..56bc0f3f 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -118,7 +118,7 @@ Function Add-Tool() { Add-Extension mbstring >$null 2>&1 Add-Extension xml >$null 2>&1 } - if (Test-Path $php_dir\$tool) { + if (((Get-ChildItem -Path $php_dir/* | Where-Object Name -Match "^$tool(.exe|.phar)*$").Count -gt 0)) { Add-Log $tick $tool "Added" } else { Add-Log $cross $tool "Could not add $tool"