Add -UseBasicParsing to bypass warning in Windowsi

This commit is contained in:
Gal Szkolnik 2021-05-12 09:34:42 -04:00
parent c38785cbf5
commit 1567ed3547
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ filter Out-Matched { $_ | Where-Object { $_ -match $MatchPattern } }
Set-Alias FinalOutput Out-Default Set-Alias FinalOutput Out-Default
if( $MatchPattern ) { Set-Alias FinalOutput Out-Matched } if( $MatchPattern ) { Set-Alias FinalOutput Out-Matched }
Invoke-WebRequest https://github.com/$GitHubProject/releases/$tag -ErrorAction Stop | Invoke-WebRequest https://github.com/$GitHubProject/releases/$tag -UseBasicParsing -ErrorAction Stop |
Select-Object -ExpandProperty Links | Select-Object -ExpandProperty Links |
Where-Object href -match 'download/.*' | Where-Object href -match 'download/.*' |
Select-Object -ExpandProperty href | Select-Object -ExpandProperty href |