Something went wrong. Try again.
Mirroring: https://github.com/MunifTanjim/scripts.sh
Something went wrong. Try again.
scripts.sh setup-rust
493 B · 19 lines
at main
1234567891011121314151617181920#!/usr/bin/env bash
export CARGO_HOME=${CARGO_HOME:-"${HOME}/.local/share/cargo"}export RUSTUP_HOME=${RUSTUP_HOME:-"${HOME}/.local/share/rustup"}
export RUSTUP_INIT_SKIP_PATH_CHECK=yes
readonly rustup="${CARGO_HOME}/bin/rustup"
if test -x "${rustup}"; then echo "info: already installed" echo "info: trying to update" echo ${rustup} updateelse echo "info: trying to install" echo curl --proto '=https' --tlsv1.2 -fsSL https://sh.rustup.rs | sh -s -- --no-modify-path -yfi