projects
/
webi-installers
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bugfix: add missing variable $ prefix
[webi-installers/.git]
/
_webi
/
bootstrap.ps1
diff --git
a/_webi/bootstrap.ps1
b/_webi/bootstrap.ps1
index 8e7687ffa3537765a7110bea82ceb332eccea468..ace4f3a7a388d931e21f305b35b629ba09c48e56 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 }}
-IF (!(Test-Path -Path .local\bin)) { New-Item -Path .local\bin -ItemType Directory }
+New-Item -Path .local\bin -ItemType Directory -Force
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\
a b\webi
.ps1" "{{ exename }}"
+& "$Env:USERPROFILE\
.local\bin\webi-pwsh
.ps1" "{{ exename }}"