Skip to content

Commit

Permalink
Merge pull request majkinetor#93 from wget/fix-readme-invokewebrequest
Browse files Browse the repository at this point in the history
Fix readme about Invoke Web Request statement
  • Loading branch information
majkinetor authored Oct 3, 2017
2 parents 7624c4f + eb9d5ea commit 9dd0b93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ As an example, the following function uses [Invoke-WebRequest](https://technet.m

```powershell
function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases #1
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing #1
$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
Expand Down

0 comments on commit 9dd0b93

Please sign in to comment.