diff --git a/pwsh/install.ps1 b/pwsh/install.ps1 index 88d7309..9f1561b 100644 --- a/pwsh/install.ps1 +++ b/pwsh/install.ps1 @@ -1,5 +1,8 @@ #!/bin/pwsh Write-Output "'pwsh@$Env:WEBI_TAG' is an alias for 'powershell@$Env:WEBI_VERSION'" -IF ($null -eq $Env:WEBI_HOST -or $Env:WEBI_HOST -eq "") { $Env:WEBI_HOST = "https://webinstall.dev" } -curl.exe -A MS -fsSL "$Env:WEBI_HOST/powershell@$Env:WEBI_VERSION" | powershell + +$PwshBootUrl = "$Env:WEBI_HOST/powershell@$Env:WEBI_VERSION" +$PwshBootScript = "$HOME\.local\tmp\install-pwsh-boot.ps1" +Invoke-DownloadUrl -Force -URL $PwshBootUrl -Path $PwshBootScript +powershell -ExecutionPolicy Bypass $PwshBootScript