mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-23 22:16:48 +00:00
fix(windows): make pwsh alias 'powershell ...' rather '... | powershell"
This commit is contained in:
+5
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user