fix: version match
This commit is contained in:
@@ -131,7 +131,7 @@ function Install-Package {
|
||||
if ($MinVersion -and $version) {
|
||||
# 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+){1,2})') {
|
||||
if ($version -match '^\d+(?:\.\d+)*') {
|
||||
$installedVersion = $matches[1]
|
||||
try {
|
||||
if ([version]$installedVersion -lt [version]$MinVersion) {
|
||||
|
||||
Reference in New Issue
Block a user