use WEBI_HOST rather than webinstall.dev
[webi-installers/.git] / go / install.sh
index f03c2cd3957089fc372f9472d6fa4dab53ba853f..613fde2edcfef5c8a5a260facf1838c39e6dd961 100644 (file)
@@ -6,4 +6,5 @@
 #   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