From 6b940eb8cbc5a7178232a14f023f7f2fe42a8d07 Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 26 Nov 2021 11:19:50 +0100 Subject: [PATCH] Fixing windows installer curl call (l#360) The environment variable $Env:WEBI_UA seems to be set to "Windows " followed by Arch (x64 etc.). Unfortunately, the parameters for the curl.exe call are "misplaced" and the user agent string is not passed to the -A parameter. This commit fixes this issue. --- k9s/install.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k9s/install.ps1 b/k9s/install.ps1 index 9d7f3b2..12f8351 100644 --- a/k9s/install.ps1 +++ b/k9s/install.ps1 @@ -23,7 +23,7 @@ IF (!(Test-Path -Path "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE")) { # TODO: arch detection echo "Downloading k9s from $Env:WEBI_PKG_URL to $pkg_download" - & curl.exe -A -L "$Env:WEBI_UA" -fsSL "$Env:WEBI_PKG_URL" -o "$pkg_download.part" + & curl.exe -A "$Env:WEBI_UA" -fsSL "$Env:WEBI_PKG_URL" -o "$pkg_download.part" & move "$pkg_download.part" "$pkg_download" }