Skip to content

Commit

Permalink
fetch-configlet: fix download in PowerShell script (#787)
Browse files Browse the repository at this point in the history
Fixes: #786
  • Loading branch information
ErikSchierboom authored Aug 14, 2023
1 parent be5675c commit 6123274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/fetch-configlet.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Function Get-DownloadUrl {
Invoke-RestMethod -Uri $latestUrl -PreserveAuthorizationOnRedirect @requestOpts
| Select-Object -ExpandProperty assets
| Where-Object { $_.browser_download_url -match $FileName }
| Select-Object -ExpandProperty browser_download_url
| Select-Object -ExpandProperty browser_download_url -First 1
}

$downloadUrl = Get-DownloadUrl
Expand Down

0 comments on commit 6123274

Please sign in to comment.