Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/majkinetor/au
Browse files Browse the repository at this point in the history
  • Loading branch information
majkinetor committed Oct 15, 2016
2 parents a937bfa + 167a408 commit 95ac5fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ As an example, the following function uses [Invoke-WebRequest](https://technet.m
```powershell
function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases #1
$regex = '.exe$'
$url32 = $download_page.links | ? href -match $regex | select -First 1 -expand href #2
$regex = '.exe$'
$url = $download_page.links | ? href -match $regex | select -First 1 -expand href #2
$version = $url -split '-|.exe' | select -Last 1 -Skip 2 #3
return @{ Version = $vrsion; URL32 = $url }
return @{ Version = $version; URL32 = $url }
}
```

Expand Down

0 comments on commit 95ac5fd

Please sign in to comment.