From 3aada97615bd110d81868737b693c9c4098c7444 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Thu, 7 Dec 2023 16:59:43 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20don=E2=80=99t=20leave=20rustup.sh=20behi?= =?UTF-8?q?nd=20or=20install=20an=20unused=20toolchain=20(#22)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scripts/install.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/scripts/install.sh b/src/scripts/install.sh index a3a7ddb..1fcafc4 100644 --- a/src/scripts/install.sh +++ b/src/scripts/install.sh @@ -1,13 +1,7 @@ #!/usr/bin/env bash -curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rustup.sh -chmod +x rustup.sh -./rustup.sh -y +curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \ + -y --default-toolchain "$RUST_VERSION" # shellcheck source=/dev/null source "$HOME"/.cargo/env - -if [ "$RUST_VERSION" != "stable" ]; then - rustup toolchain install "$RUST_VERSION" - rustup default "$RUST_VERSION" -fi