diff options
-rw-r--r-- | ci/build.ps1 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ci/build.ps1 b/ci/build.ps1 index a8b67c485b..66a6e532ed 100644 --- a/ci/build.ps1 +++ b/ci/build.ps1 @@ -171,7 +171,9 @@ if (-not $NoTests) { } # Ensure choco's cpack is not in PATH otherwise, it conflicts with CMake's -Remove-Item -Path $env:ChocolateyInstall\bin\cpack.exe -Force +if (Get-Item -Path $env:ChocolateyInstall\bin\cpack.exe) { + Remove-Item -Path $env:ChocolateyInstall\bin\cpack.exe -Force +} # Build artifacts cpack -G ZIP -C RelWithDebInfo |