X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=rustlang%2Finstall.sh;h=1cf75bb70e8f3ebe1c356b7c095186cd3646ccf1;hb=d68d0376b9cead7e1bf6446e71f00c8e3c965a45;hp=e95f17285aa44c1cf313c91c9d89603cfa958248;hpb=5e0debf4c54c1e55476c1bc533c26db2b54d2f77;p=webi-installers%2F.git diff --git a/rustlang/install.sh b/rustlang/install.sh index e95f172..1cf75bb 100644 --- a/rustlang/install.sh +++ b/rustlang/install.sh @@ -1,30 +1,8 @@ #!/bin/bash -# title: Rust -# homepage: https://rust-lang.org -# tagline: The Rust Toolchain -# description: | -# A language empowering everyone to build reliable and efficient software. -# -# Rust is the modern language used to build all of your favorite CLI tools, such as -# - rg (ripgrep, modern grep) -# - fd (modern find) -# - sd (modern sed) -# - lsd (modern ls) -# - bat (modern cat) -# examples: | -# ```bash -# cargo install ripgrep -# ``` -#
-# -# ```bash -# cargo new hello --bin -# cargo build --release -# ./hello -# > "Hello, world!" -# ``` +function __install_rust() { + # Straight from https://rustup.rs/ + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh +} - -# Straight from https://rustup.rs/ -curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh +__install_rust