From 20661ebc4f9df0592a73029a29a987767527f5e7 Mon Sep 17 00:00:00 2001 From: Miodrag Milic Date: Wed, 21 Feb 2018 16:41:13 +0100 Subject: [PATCH] close #124 --- AU/Public/Update-Package.ps1 | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AU/Public/Update-Package.ps1 b/AU/Public/Update-Package.ps1 index 8cf8b6f3..37136610 100644 --- a/AU/Public/Update-Package.ps1 +++ b/AU/Public/Update-Package.ps1 @@ -45,7 +45,7 @@ } function global:au_GetLatest { - $download_page = Invoke-WebRequest -Uri https://github.com/hluk/CopyQ/releases + $download_page = Invoke-WebRequest https://github.com/hluk/CopyQ/releases -UseBasicParsing $re = "copyq-.*-setup.exe" $url = $download_page.links | ? href -match $re | select -First 1 -expand href diff --git a/README.md b/README.md index a0f33d3e..aae1ae8d 100644 --- a/README.md +++ b/README.md @@ -217,7 +217,7 @@ Sometimes invoking `chocolateyInstall.ps1` during the automatic checksum could b } function au_GetLatest() { - download_page = Invoke-WebRequest $releases -UseBasicParsing + $download_page = Invoke-WebRequest $releases -UseBasicParsing $url = $download_page.links | ? href -match '\.exe$' | select -First 1 -expand href $version = $url -split '/' | select -Last 1 -Skip 1 @{