We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e88dc4 commit 24913b1Copy full SHA for 24913b1
updater/scripts/sort-versions.ps1
@@ -10,8 +10,11 @@ function GetComparableVersion([Parameter(Mandatory = $true)][string] $value)
10
try {
11
[System.Management.Automation.SemanticVersion]::Parse($value)
12
} catch {
13
- Write-Error "Failed to parse semantic version '$value': $_"
+ Write-Warning "Failed to parse semantic version '$value': $_"
14
+ $null
15
}
16
17
-$List | Sort-Object -Property @{Expression = { GetComparableVersion $_ } }
18
+$List `
19
+ | Where-Object { $null -ne (GetComparableVersion $_) } `
20
+ | Sort-Object -Property @{Expression = { GetComparableVersion $_ } }
0 commit comments