Skip to content

armgit / herdr

Public Imported from GitHub
0

the runtime your coding agents live on

fix(update): tolerate empty windows channel env

Ogulcan Celik416827872a6e
diff --git a/website/install.ps1 b/website/install.ps1
index ca22974f8..65192108b 100644
--- a/website/install.ps1
+++ b/website/install.ps1
@@ -1,6 +1,5 @@
[CmdletBinding()]
param(
- [ValidateSet("stable", "preview")]
[string]$Channel = $env:HERDR_CHANNEL,
[string]$ManifestUrl = $env:HERDR_MANIFEST_URL,
[string]$InstallDir = $env:HERDR_INSTALL_DIR,
@@ -15,6 +14,11 @@ if ([string]::IsNullOrWhiteSpace($Channel)) {
$Channel = "preview"
}
+if ($Channel -notin @("stable", "preview")) {
+ Write-Error "Invalid Herdr channel '$Channel'. Use 'preview'."
+ exit 1
+}
+
function Write-Step {
param([string]$Message)
Write-Host "==> $Message"