From 6123274159710279a12e0e18aacce1eae61a54c7 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Mon, 14 Aug 2023 17:47:23 +0200 Subject: [PATCH] fetch-configlet: fix download in PowerShell script (#787) Fixes: #786 --- scripts/fetch-configlet.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/fetch-configlet.ps1 b/scripts/fetch-configlet.ps1 index ab8f1036..1892739f 100644 --- a/scripts/fetch-configlet.ps1 +++ b/scripts/fetch-configlet.ps1 @@ -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