fix(ci): use correct check for path-existence

This commit is contained in:
James McCoy 2021-10-31 14:09:10 -04:00
parent 64ec1f5b02
commit 3ad07553e2
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB

View File

@ -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
}