mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-03-03 09:50:19 +00:00
Simplify boostrap.ps1
This commit is contained in:
@@ -2,6 +2,5 @@
|
||||
IF (!(Test-Path -Path .local\bin)) { New-Item -Path .local\bin -ItemType Directory }
|
||||
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"
|
||||
pushd "$Env:USERPROFILE"
|
||||
& powershell -ExecutionPolicy Bypass ".local\bin\webi.ps1" "{{ exename }}"
|
||||
popd
|
||||
Set-ExecutionPolicy -Scope Process Bypass
|
||||
& "$Env:USERPROFILE\a b\webi.ps1" "{{ exename }}"
|
||||
|
||||
Reference in New Issue
Block a user