mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-19 03:56:16 +00:00
feature(delta): use WEBI_UA for curl.exe
This commit is contained in:
+1
-3
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user