Skip to content

Commit

Permalink
fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
C4illin committed May 12, 2024
1 parent 52a5620 commit f7d0517
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions desktop-audio-streamer/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ function global:au_BeforeUpdate() {
function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing

$url = $download_page.links | ? href -match '.zip$' | % href | select -first 1
$version = ($url -split '/' | select -last 1).substring(6,3)
$url = $download_page.links | Where-Object href -match '.zip$' | ForEach-Object href | Select-Object -first 1
$version = (($url -split '/' | Select-Object -last 1) -replace '[^\d.]', '').Trim('.')

@{
URL = $url
Expand Down

0 comments on commit f7d0517

Please sign in to comment.