From 927a129a4f057e9fbb908b4390c9b40d5159bd0e Mon Sep 17 00:00:00 2001 From: Alexander Mnich <56564725+a-mnich@users.noreply.github.com> Date: Wed, 30 Oct 2024 18:32:48 +0000 Subject: [PATCH] add betterbird filter --- scripts/Packages/Update-Betterbird.Betterbird.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/Packages/Update-Betterbird.Betterbird.ps1 b/scripts/Packages/Update-Betterbird.Betterbird.ps1 index 2832397..2580b34 100644 --- a/scripts/Packages/Update-Betterbird.Betterbird.ps1 +++ b/scripts/Packages/Update-Betterbird.Betterbird.ps1 @@ -20,6 +20,9 @@ $latestVersion = $versions | Sort-Object -Descending -Unique | Select-Object -Fi $latestVersionUrl = $FilteredLinks | ForEach-Object { ($_.href -replace '\?.*', '') } | Where-Object { $_ -ne '' -and $_ -match $latestVersion -and $_ -notmatch "latest-build|Previous" } | ForEach-Object { $WebsiteURL + $_ } +# filter zips +$latestVersionUrl = $latestVersionUrl | Where-Object { $_ -match ".exe" } + $returnObject = [PSCustomObject]@{ Version = $latestVersion URLs = $latestVersionUrl