From 953c06cbc34af16103d012cc1861a10a0a2b32cb Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 23 Nov 2021 08:47:18 +0000 Subject: [PATCH] feature(delta): use WEBI_UA for curl.exe --- delta/install.ps1 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/delta/install.ps1 b/delta/install.ps1 index 8679d09..b27856d 100644 --- a/delta/install.ps1 +++ b/delta/install.ps1 @@ -21,10 +21,8 @@ $pkg_download = "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE" # Fetch archive IF (!(Test-Path -Path "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE")) { - # TODO: arch detection - # useragent -A was causing download to fail at 1kb echo "Downloading delta from $Env:WEBI_PKG_URL to $pkg_download" - & curl.exe -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" } -- 2.25.1