Add -UseBasicParsing to bypass warning in Windowsi
This commit is contained in:
parent
c38785cbf5
commit
1567ed3547
|
@ -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 |
|
||||||
|
|
Loading…
Reference in New Issue