projects
/
webi-installers
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7dad62
)
feature(delta): use WEBI_UA for curl.exe
author
AJ ONeal
<aj@therootcompany.com>
Tue, 23 Nov 2021 08:47:18 +0000
(08:47 +0000)
committer
AJ ONeal
<aj@therootcompany.com>
Tue, 23 Nov 2021 09:07:46 +0000
(09:07 +0000)
delta/install.ps1
patch
|
blob
|
history
diff --git
a/delta/install.ps1
b/delta/install.ps1
index 8679d09424bffd7fcc318cce9969ae038a7cbad5..b27856dfe54543342735a204ea6a5bed0fd1dd42 100644
(file)
--- 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"
}