This commit is contained in:
Danny Bessems 2021-06-22 10:36:21 +02:00
parent 5b0a8fc7df
commit 248ac46d5f

View File

@ -8,7 +8,7 @@ $InvokeRestMethodSplat = @{
Method = 'GET' Method = 'GET'
} }
$InvokeWebRequestSplat = @{ $InvokeWebRequestSplat = @{
Uri = ((Invoke-RestMethod @InvokeRestMethodSplat).assets | Where-Object ${_.name -like '*.appxbundle'}).browser_download_url Uri = ((Invoke-RestMethod @InvokeRestMethodSplat).assets | Where-Object {$_.name -like '*.appxbundle'}).browser_download_url
Out = "$env:temp\winget.appxbundle" Out = "$env:temp\winget.appxbundle"
} }
Invoke-WebRequest @InvokeWebRequestSplat Invoke-WebRequest @InvokeWebRequestSplat