chore(rustlang): bash style update (use function)
[webi-installers/.git] / rustlang / install.sh
index 599d0ee5776f7947234fb7907f291ea853032c47..1cf75bb70e8f3ebe1c356b7c095186cd3646ccf1 100644 (file)
@@ -1,4 +1,8 @@
 #!/bin/bash
 
-# Straight from https://rustup.rs/
-curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
+function __install_rust() {
+    # Straight from https://rustup.rs/
+    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
+}
+
+__install_rust