use WEBI_HOST rather than webinstall.dev
[webi-installers/.git] / rust / install.sh
index ae4a4ac208da3ddb6bb558592e0b62e858e1ef1a..6f2f87ec6a0f453738926bb4b098cf47fcfd58bb 100644 (file)
@@ -6,4 +6,5 @@
 #   See https://webinstall.dev/rustlang
 
 echo "'rust' is an alias for 'rustlang'"
-curl -fsSL https://webinstall.dev/rustlang@${WEBI_VERSION:-} | bash
+WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
+curl -fsSL "$WEBI_HOST/rustlang@${WEBI_VERSION:-}" | bash