mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
fix MSI version parsing (#5475)
This commit is contained in:
+9
-1
@@ -1904,7 +1904,15 @@ function Get-PackageVersionAsMajorMinorBuildRevision
|
||||
} elseif (1 -lt $packageVersionTokens.Count) {
|
||||
# We have all the four fields
|
||||
$packageBuildTokens = ([regex]::Matches($packageVersionTokens[1], "\d+"))[0].value
|
||||
$packageVersion = $packageVersion + '.' + $packageBuildTokens
|
||||
|
||||
if ($packageBuildTokens)
|
||||
{
|
||||
$packageVersion = $packageVersion + '.' + $packageBuildTokens
|
||||
}
|
||||
else
|
||||
{
|
||||
$packageVersion = $packageVersion
|
||||
}
|
||||
}
|
||||
|
||||
$packageVersion
|
||||
|
||||
Reference in New Issue
Block a user