mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-19 03:56:16 +00:00
ref!: delete alias 'pwsh' in prep for powershell => pwsh transition
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
---
|
||||
title: PowerShell (pwsh alias)
|
||||
homepage: https://webinstall.dev/powershell
|
||||
tagline: |
|
||||
Alias for https://webinstall.dev/powershell
|
||||
alias: powershell
|
||||
description: |
|
||||
See https://webinstall.dev/powershell
|
||||
---
|
||||
|
||||
Alias for https://webinstall.dev/powershell
|
||||
@@ -1,8 +0,0 @@
|
||||
#!/bin/pwsh
|
||||
|
||||
Write-Output "'pwsh@$Env:WEBI_TAG' is an alias for 'powershell@$Env:WEBI_VERSION'"
|
||||
|
||||
$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
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
set -u
|
||||
|
||||
__redirect_alias_powershell() {
|
||||
echo "'pwsh@${WEBI_TAG:-stable}' is an alias for 'powershell@${WEBI_VERSION-}'"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/powershell@${WEBI_VERSION-}" | sh
|
||||
}
|
||||
|
||||
__redirect_alias_powershell
|
||||
Reference in New Issue
Block a user