X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=_webi%2Fbootstrap.ps1;h=18b0bf87b30e5e1275c58a0c32fc24ad3a8aaaf1;hb=c6aca5216b0a49140cbb261c39e9b970fe7670ff;hp=c01089b549d78b72f706ed83f5ace4617e2692c4;hpb=681cccd4d5f2adb81470ee99ede927a6de896c3b;p=webi-installers%2F.git diff --git a/_webi/bootstrap.ps1 b/_webi/bootstrap.ps1 index c01089b..18b0bf8 100644 --- a/_webi/bootstrap.ps1 +++ b/_webi/bootstrap.ps1 @@ -1,3 +1,5 @@ +#!/usr/bin/env pwsh + # If a command returns an error, halt the script. $ErrorActionPreference = 'Stop' @@ -32,11 +34,13 @@ Invoke-WebRequest "$Env:WEBI_HOST/packages/_webi/webi.ps1" -OutFile webi.ps1 popd -# Run webi.bat -& .\.local\bin\webi.bat {{ exename }} +# Run webi.ps1 +#TODO Set-ExecutionPolicy -ExecutionPolicy Bypass +& Invoke-Expression "powershell -ExecutionPolicy Bypass .\.local\bin\webi.ps1 {{ exename }}" # Run pathman to set up the folder -& "$Env:USERPROFILE\.local\bin\pathman.exe" add "$Env:USERPROFILE\.local\.bin" +#& "$Env:USERPROFILE\.local\bin\pathman.exe" add "$Env:USERPROFILE\.local\.bin" +& "$Env:USERPROFILE\.local\bin\pathman.exe" add .local\.bin # Done popd