refactor-reset-revert #1
@@ -132,7 +132,7 @@ function Install-Package {
|
||||
# Extract semantic version numbers only - stop before any non-digit/non-dot characters
|
||||
# This extracts "2.52.0" from "2.52.0.windows.1"
|
||||
if ($version -match '(\d+)(?:\.(\d+))?(?:\.(\d+))?') {
|
||||
$installedVersion = $matches[1]
|
||||
$installedVersion = $matches[1] + "." +$matches[2]
|
||||
try {
|
||||
if ([version]$installedVersion -lt [version]$MinVersion) {
|
||||
Write-Warning "Version $installedVersion is below minimum required version $MinVersion"
|
||||
|
||||
Reference in New Issue
Block a user