X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=_webi%2Fbootstrap.ps1;h=168c457ff6a4c4e9b88516e69d7be4d9c8783568;hb=17924e670fd56fa31ac6ebee8d8d7ee30b547358;hp=8ec299c8e685fe0761891df40e2b38e2e1d632cb;hpb=6cb859eeffe708cf75bec7333a8a23be00b7a9e9;p=webi-installers%2F.git diff --git a/_webi/bootstrap.ps1 b/_webi/bootstrap.ps1 index 8ec299c..168c457 100644 --- a/_webi/bootstrap.ps1 +++ b/_webi/bootstrap.ps1 @@ -23,14 +23,15 @@ pushd .local\bin # TODO SetStrictMode # TODO Test-Path variable:global:Env:WEBI_HOST ??? -IF(!($Env:WEBI_HOST -eq $null -or $Env:WEBI_HOST -eq "")) { +IF($Env:WEBI_HOST -eq $null -or $Env:WEBI_HOST -eq "") { $Env:WEBI_HOST = "https://webinstall.dev" } # Fetch webi.bat -Invoke-WebRequest "$Env:WEBI_HOST/packages/_webi/webi.ps1.bat" -OutFile webi.bat -Invoke-WebRequest "$Env:WEBI_HOST/packages/_webi/webi.ps1" -OutFile webi.ps1 +echo "$Env:WEBI_HOST/packages/_webi/webi.ps1" +curl.exe -s -A "windows" "$Env:WEBI_HOST/packages/_webi/webi.ps1.bat" -o webi.bat +curl.exe -s -A "windows" "$Env:WEBI_HOST/packages/_webi/webi.ps1" -o webi.ps1 popd