diff --git a/scripts/install/install.ps1 b/scripts/install/install.ps1 index 6973d482e2..9d9400ae2a 100644 --- a/scripts/install/install.ps1 +++ b/scripts/install/install.ps1 @@ -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" } diff --git a/scripts/install/install.sh b/scripts/install/install.sh index 23980b0c5e..6297787119 100755 --- a/scripts/install/install.sh +++ b/scripts/install/install.sh @@ -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 <