diff --git a/ora2pg-install/Windows/installora2pg.ps1 b/ora2pg-install/Windows/installora2pg.ps1 index d983e1f..fc8f8c1 100644 --- a/ora2pg-install/Windows/installora2pg.ps1 +++ b/ora2pg-install/Windows/installora2pg.ps1 @@ -1033,7 +1033,7 @@ Function Install-Ora2Pg # downloading the latest bits from github $version = "v23.1" - $versionMatch = (Invoke-WebRequest -Uri $o2pHomeUrl).Content -Match "`"https://github.com/darold/ora2pg/releases/expanded_assets/.*`" " + $versionMatch = (Invoke-WebRequest -Uri $o2pHomeUrl).Content -Match "`"https://github.com/darold/ora2pg/releases/expanded_assets/.*?`" " if ($versionMatch) { $uriParts = (($Matches.0).Trim().Replace("`"", "")) -split "/" $version = ($uriParts[$uriParts.Length - 1]).Trim() @@ -1281,4 +1281,4 @@ catch { finally { Write-Host ("Log file generated : " + $Global:Logfile) -ForegroundColor Green Safe-Exit -} \ No newline at end of file +}