chore(rustlang): bash style update (use function)

This commit is contained in:
AJ ONeal
2021-11-14 09:39:12 +00:00
parent 135263f4ae
commit 7e22ad9b79
+6 -2
View 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