Skip to content

Commit

Permalink
Tentative fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Shywim committed Jul 24, 2017
1 parent cf68ac2 commit 9a3fb2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions automatic/dopamine/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ function global:au_SearchReplace {
function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases

$re = "Dopamine ([1-9][0-9.,]*).msi"
$re = "Dopamine ([1-9][0-9.,]*[0-9]).msi"
$url = $download_page.links | Where-Object href -Match $re | Select-Object -Last 1 -expand href
$url.Trim('./')

$version_re = "([1-9][0-9.,]*)"
$version_re = "([1-9][0-9.,]*[0-9])"
$version = $url | Select-String -Pattern $version_re | ForEach-Object { $_.Matches } | ForEach-Object { $_.Value }
$url = $releases + '/' + $url

Expand Down

0 comments on commit 9a3fb2f

Please sign in to comment.