mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
ci(win): only remove choco's cpack.exe if it exists
(cherry picked from commit ec0f4fab48
)
This commit is contained in:
parent
b60293b76d
commit
64ec1f5b02
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user