Skip to content

Commit

Permalink
(ultradefrag) Update++
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiringWorm committed Oct 13, 2018
1 parent d30c97b commit da6d7cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion automatic/ultradefrag/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ function global:au_SearchReplace {
function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing

$re = '\.exe$'
$releases_Url = $download_page.Links | ? href -match 'stable\-release' | select -first 1 -expand href
$download_page = Invoke-WebRequest -Uri $releases_Url -UseBasicParsing

$re = '\.exe\/download$'
$url = $download_page.links | ? href -match $re | % href
$url32 = $url -match 'i386' | select -first 1
$url64 = $url -match 'amd64' | select -first 1
Expand Down

0 comments on commit da6d7cf

Please sign in to comment.