projects
/
webi-installers
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git]
/
go
/
install.sh
diff --git
a/go/install.sh
b/go/install.sh
index f03c2cd3957089fc372f9472d6fa4dab53ba853f..c096eeaf21e3723591b41baee3b60135c09471a1 100644
(file)
--- a/
go/install.sh
+++ b/
go/install.sh
@@
-1,3
+1,4
@@
+#!/bin/bash
# title: Go (golang alias)
# homepage: https://webinstall.dev/golang
# tagline: Alias for https://webinstall.dev/golang
# title: Go (golang alias)
# homepage: https://webinstall.dev/golang
# tagline: Alias for https://webinstall.dev/golang
@@
-6,4
+7,5
@@
# See https://webinstall.dev/golang
echo "'go@${WEBI_TAG:-stable}' is an alias for 'golang@${WEBI_VERSION:-}'"
# See https://webinstall.dev/golang
echo "'go@${WEBI_TAG:-stable}' is an alias for 'golang@${WEBI_VERSION:-}'"
-curl -fsSL https://webinstall.dev/golang@${WEBI_VERSION:-} | bash
+WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
+curl -fsSL "$WEBI_HOST/golang@${WEBI_VERSION:-}" | bash