diff --git a/postgresql/update.ps1 b/postgresql/update.ps1 index 33c7d3ad..f3449c7c 100644 --- a/postgresql/update.ps1 +++ b/postgresql/update.ps1 @@ -53,7 +53,7 @@ function global:au_GetLatest { $version = $version.Replace('*', '') $tds[4] -match 'href="(.+?)"' | Out-Null - $href = $Matches[1].Trim() + $href = $Matches[1] if (!$href) { Write-Host 'No href for' $version; continue } @@ -73,6 +73,7 @@ function global:au_GetLatest { ReleaseNotes = "https://www.postgresql.org/docs/$major/static/release.html" SoftwareName = "PostgreSQL $major*" } + if ($s1.Url64.Trim() -eq '') { Write-Host "no URL for" $item.version; continue } $s2 = @{ Version = $item.version