aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2021-10-31 08:42:30 -0400
committerJames McCoy <jamessan@jamessan.com>2021-10-31 09:41:10 -0400
commitec0f4fab486434b5dd6ab9c7fb402cc8c1f73c98 (patch)
tree484e7adf4bfc12257b384b9d85249300d07154e2
parent4da0351651848e6c6c52903518fcd9ed15e087be (diff)
downloadrneovim-ec0f4fab486434b5dd6ab9c7fb402cc8c1f73c98.tar.gz
rneovim-ec0f4fab486434b5dd6ab9c7fb402cc8c1f73c98.tar.bz2
rneovim-ec0f4fab486434b5dd6ab9c7fb402cc8c1f73c98.zip
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