aboutsummaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-06-07 22:51:59 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-06-07 22:54:24 +0300
commit416827872a6e2c820bd58209d267685d4c07cb7d (patch)
treec6d46e6260ec85089d02a55e7b207dc5c3b132ba /website
parent2e9f030681b694d2e60e809724bfd7f6caa50a5a (diff)
fix(update): tolerate empty windows channel env
Diffstat (limited to 'website')
-rw-r--r--website/install.ps16
1 files changed, 5 insertions, 1 deletions
diff --git a/website/install.ps1 b/website/install.ps1
index ca22974f..65192108 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"