From 7e22ad9b79497fd4e0f54945ad53e496c03b1b4a Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 14 Nov 2021 09:39:12 +0000 Subject: [PATCH] chore(rustlang): bash style update (use function) --- rustlang/install.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rustlang/install.sh b/rustlang/install.sh index 599d0ee..1cf75bb 100644 --- a/rustlang/install.sh +++ b/rustlang/install.sh @@ -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 -- 2.25.1