mirror of
https://github.com/openai/codex.git
synced 2026-10-21 17:48:44 +00:00
fix: preserve PowerShell latest release casing
This commit is contained in:
@@ -51,7 +51,7 @@ function Normalize-Version {
|
||||
[string]$RawVersion
|
||||
)
|
||||
|
||||
if ([string]::IsNullOrWhiteSpace($RawVersion) -or $RawVersion -ceq "latest") {
|
||||
if ([string]::IsNullOrWhiteSpace($RawVersion) -or $RawVersion -eq "latest") {
|
||||
return "latest"
|
||||
}
|
||||
|
||||
@@ -219,7 +219,7 @@ function Remove-StaleInstallArtifacts {
|
||||
function Resolve-Version {
|
||||
$normalizedVersion = Normalize-Version -RawVersion $Release
|
||||
Assert-ValidReleaseVersion -Version $normalizedVersion
|
||||
if ($normalizedVersion -cne "latest") {
|
||||
if ($normalizedVersion -ne "latest") {
|
||||
return $normalizedVersion
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user