aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/packages/chocolatey/test.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/packages/chocolatey/test.ps1')
-rw-r--r--scripts/packages/chocolatey/test.ps17
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/packages/chocolatey/test.ps1 b/scripts/packages/chocolatey/test.ps1
index febbc2f417..b561ba2a98 100644
--- a/scripts/packages/chocolatey/test.ps1
+++ b/scripts/packages/chocolatey/test.ps1
@@ -1,12 +1,13 @@
param(
- [switch] $prerelease
+ [switch] $prerelease,
+ [string] $sources = "."
)
choco uninstall bazel --force -y
if ($prerelease) {
- choco install bazel --verbose --debug --prerelease --force -y -s ".;https://chocolatey.org/api/v2/"
+ choco install bazel --verbose --debug --prerelease --force -y -s $sources
} else {
- choco install bazel --verbose --debug --force -y -s ".;https://chocolatey.org/api/v2/"
+ choco install bazel --verbose --debug --force -y -s $sources
}
if ($LASTEXITCODE -ne 0)