X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=_webi%2Fbootstrap.ps1;h=b6ebd84e6bec1b420bf6f9ecd24b26a68bbeb17a;hb=4edf137e5d6b65f9ac847db6694ac387c7e91f3e;hp=8e7687ffa3537765a7110bea82ceb332eccea468;hpb=1b521fc4079e7f0b4ba0821757d6e3f3c2bbbd49;p=webi-installers%2F.git diff --git a/_webi/bootstrap.ps1 b/_webi/bootstrap.ps1 index 8e7687f..b6ebd84 100644 --- a/_webi/bootstrap.ps1 +++ b/_webi/bootstrap.ps1 @@ -1,6 +1,6 @@ # 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 | out-null 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 -& "$Env:USERPROFILE\a b\webi.ps1" "{{ exename }}" +& "$Env:USERPROFILE\.local\bin\webi-pwsh.ps1" "{{ exename }}"