bugfix(vim-shfmt): fix package name
[webi-installers/.git] / go / install.sh
index a88c0e7f4f2cf84b872479e0647ec9069e6ea79b..c096eeaf21e3723591b41baee3b60135c09471a1 100644 (file)
@@ -1,3 +1,4 @@
+#!/bin/bash
 # title: Go (golang alias)
 # homepage: https://webinstall.dev/golang
 # tagline: Alias for https://webinstall.dev/golang
@@ -5,5 +6,6 @@
 # description: |
 #   See https://webinstall.dev/golang
 
-echo "'go@${WEBI_TAG:-}' is an alias for 'golang@${WEBI_VERSION:-}'"
-curl -fsSL https://webinstall.dev/golang@${WEBI_VERSION:-} | bash
+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:-}" | bash