refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git] / rust / install.sh
index ae4a4ac208da3ddb6bb558592e0b62e858e1ef1a..33c06cb9d388780e5124a06df9893bc4bbb49617 100644 (file)
@@ -1,3 +1,4 @@
+#!/bin/bash
 # title: Rust (rustlang alias)
 # homepage: https://webinstall.dev/rustlang
 # tagline: Alias for https://webinstall.dev/rustlang
@@ -6,4 +7,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