From 48f08b76bec3d30d38ca2b9dc42cf844de7a6b0f Mon Sep 17 00:00:00 2001 From: James Ruskin Date: Thu, 4 Jul 2024 11:14:34 +0100 Subject: [PATCH] (kubernetes-cli) Fixes Update.ps1 (GetLatest returns nothing) GetLatest was failing to return anything. On inspection, it seems that a latest -alpha release was causing get latest to return immediately instead of listing the rest of the available streams. Continuing rather than returning when a URL isn't matched fixes that. --- automatic/kubernetes-cli/update.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automatic/kubernetes-cli/update.ps1 b/automatic/kubernetes-cli/update.ps1 index bc3fb7b3ef7..f9880de8246 100644 --- a/automatic/kubernetes-cli/update.ps1 +++ b/automatic/kubernetes-cli/update.ps1 @@ -42,7 +42,7 @@ function global:au_GetLatest { foreach ($minor_version in $minor_version_changelogs) { if ($streams.ContainsKey($minor_version)) { - return + continue } $minor_changelog_page = Invoke-WebRequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/kubernetes/kubernetes/master/CHANGELOG/CHANGELOG-$($minor_version).md" @@ -52,7 +52,7 @@ function global:au_GetLatest { | Select-Object -First 1 if (!$url64) { - return + continue } if ($url64 -match "/v(?\d+(\.\d+)+)/kubernetes-client-windows-amd64.tar.gz") {