From 3ad07553e26b3c04d6832b05bdc667201c469234 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Sun, 31 Oct 2021 14:09:10 -0400 Subject: [PATCH] fix(ci): use correct check for path-existence --- ci/build.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/build.ps1 b/ci/build.ps1 index 745d7e99f5..f2f9cee06d 100644 --- a/ci/build.ps1 +++ b/ci/build.ps1 @@ -171,7 +171,7 @@ if (-not $NoTests) { } # Ensure choco's cpack is not in PATH otherwise, it conflicts with CMake's -if (Get-Item -Path $env:ChocolateyInstall\bin\cpack.exe) { +if (Test-Path -Path $env:ChocolateyInstall\bin\cpack.exe) { Remove-Item -Path $env:ChocolateyInstall\bin\cpack.exe -Force }