From 01696213cce65209efff7d22b360bc0d06a0acc7 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 2 Jun 2019 01:18:00 -0300 Subject: Test if rust tooling is configured before using it --- bash/env.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bash') diff --git a/bash/env.sh b/bash/env.sh index d86a89b..41b8975 100644 --- a/bash/env.sh +++ b/bash/env.sh @@ -90,6 +90,8 @@ export PATH="$GOPATH/bin:$PATH" # # Rust # + +rustc --print sysroot &> /dev/null || (rustup install stable && rustup default stable) export PATH="$HOME/.cargo/bin:$PATH" RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src" export RUST_SRC_PATH -- cgit v1.2.3