mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-20 12:36:19 +00:00
feat: add golang-essentials alias
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
---
|
||||
title: Golang Essentials (go-essentials alias)
|
||||
homepage: https://webinstall.dev/go-essentials
|
||||
tagline: |
|
||||
Alias for https://webinstall.dev/go-essentials
|
||||
alias: go-essentials
|
||||
description: |
|
||||
See https://webinstall.dev/go-essentials
|
||||
---
|
||||
|
||||
Alias for https://webinstall.dev/go-essentials
|
||||
@@ -0,0 +1,5 @@
|
||||
#!/bin/pwsh
|
||||
|
||||
echo "'go@$Env:WEBI_TAG' is an alias for 'golang@$Env:WEBI_VERSION'"
|
||||
IF ($Env:WEBI_HOST -eq $null -or $Env:WEBI_HOST -eq "") { $Env:WEBI_HOST = "https://webinstall.dev" }
|
||||
curl.exe -fsSL "$Env:WEBI_HOST/golang@$Env:WEBI_VERSION" | powershell
|
||||
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
set -u
|
||||
|
||||
__redirect_alias_golang() {
|
||||
echo "'go@${WEBI_TAG:-stable}' is an alias for 'golang@${WEBI_VERSION-}'"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/golang@${WEBI_VERSION-}" | sh
|
||||
}
|
||||
|
||||
__redirect_alias_golang
|
||||
Reference in New Issue
Block a user