refactor!: remove installer release inputs

This commit is contained in:
Edward Frazer
2026-05-26 17:19:19 -07:00
parent be346634f9
commit 3de8981df3
2 changed files with 5 additions and 13 deletions
+3 -3
View File
@@ -1,12 +1,12 @@
[CmdletBinding()]
param(
[string]$Release = $env:CODEX_RELEASE
)
param()
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
$ProgressPreference = "SilentlyContinue"
$Release = $env:CODEX_RELEASE
if ([string]::IsNullOrWhiteSpace($Release)) {
$Release = "latest"
}
+2 -10
View File
@@ -63,20 +63,12 @@ validate_version() {
parse_args() {
while [ "$#" -gt 0 ]; do
case "$1" in
--release)
if [ "$#" -lt 2 ]; then
echo "--release requires a value." >&2
exit 1
fi
RELEASE="$2"
shift
;;
--help | -h)
cat <<EOF
Usage: install.sh [--release VERSION]
Usage: install.sh
Environment:
CODEX_RELEASE Version to install; overridden by --release.
CODEX_RELEASE Version to install, or latest.
CODEX_NON_INTERACTIVE Set to 1, true, or yes to skip prompts.
EOF
exit 0