From: AJ ONeal Date: Sun, 14 Nov 2021 09:39:12 +0000 (+0000) Subject: chore(rustlang): bash style update (use function) X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=7e22ad9b79497fd4e0f54945ad53e496c03b1b4a;p=webi-installers%2F.git chore(rustlang): bash style update (use function) --- 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