Skip to content

Commit

Permalink
add betterbird filter
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mnich committed Oct 30, 2024
1 parent 42dbc77 commit 927a129
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/Packages/Update-Betterbird.Betterbird.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 927a129

Please sign in to comment.