chore(rustlang): bash style update (use function)
authorAJ ONeal <aj@therootcompany.com>
Sun, 14 Nov 2021 09:39:12 +0000 (09:39 +0000)
committerAJ ONeal <aj@therootcompany.com>
Sun, 14 Nov 2021 09:39:12 +0000 (09:39 +0000)
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