aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2021-10-31 10:35:43 -0400
committerGitHub <noreply@github.com>2021-10-31 10:35:43 -0400
commit346227e3ad8f2855364f7e40f803b85be237be42 (patch)
tree193eef1dcac9eb5045cc1f3eab0fc6247021ec30
parent52fa1d26db43664e8aeb856a59a693e9cb6ad44f (diff)
parentec0f4fab486434b5dd6ab9c7fb402cc8c1f73c98 (diff)
downloadrneovim-346227e3ad8f2855364f7e40f803b85be237be42.tar.gz
rneovim-346227e3ad8f2855364f7e40f803b85be237be42.tar.bz2
rneovim-346227e3ad8f2855364f7e40f803b85be237be42.zip
Merge pull request #16191 from jamessan/fix-cpack-removal
ci(win): only remove choco's cpack.exe if it exists
-rw-r--r--ci/build.ps14
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