projects
/
webi-installers
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feature(delta): use WEBI_UA for curl.exe
[webi-installers/.git]
/
_webi
/
bootstrap.ps1
diff --git
a/_webi/bootstrap.ps1
b/_webi/bootstrap.ps1
index 0060fab4097432f625efd8406adff1041db281df..b6ebd84e6bec1b420bf6f9ecd24b26a68bbeb17a 100644
(file)
--- a/
_webi/bootstrap.ps1
+++ b/
_webi/bootstrap.ps1
@@
-1,6
+1,6
@@
# Download the latest webi, then install {{ exename }}
# Download the latest webi, then install {{ exename }}
-New-Item -Path .local\bin -ItemType Directory -Force
+New-Item -Path .local\bin -ItemType Directory -Force
| out-null
IF ($Env:WEBI_HOST -eq $null -or $Env:WEBI_HOST -eq "") { $Env:WEBI_HOST = "https://webinstall.dev" }
IF ($Env:WEBI_HOST -eq $null -or $Env:WEBI_HOST -eq "") { $Env:WEBI_HOST = "https://webinstall.dev" }
-curl.exe -s -A "windows" "$Env:WEBI_HOST/packages/_webi/webi
.ps1" -o "$Env:USERPROFILE\.local\bin\webi
.ps1"
+curl.exe -s -A "windows" "$Env:WEBI_HOST/packages/_webi/webi
-pwsh.ps1" -o "$Env:USERPROFILE\.local\bin\webi-pwsh
.ps1"
Set-ExecutionPolicy -Scope Process Bypass
Set-ExecutionPolicy -Scope Process Bypass
-& "$Env:USERPROFILE\.local\bin\webi.ps1" "{{ exename }}"
+& "$Env:USERPROFILE\.local\bin\webi
-pwsh
.ps1" "{{ exename }}"