We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0403687 + d9af448 commit 059568fCopy full SHA for 059568f
setup-toolchain.sh
@@ -5,12 +5,11 @@ set -e
5
6
cd "$(dirname "$0")"
7
8
-RTIM_PATH=$(command -v rustup-toolchain-install-master)
+RTIM_PATH=$(command -v rustup-toolchain-install-master) || INSTALLED=false
9
CARGO_HOME=${CARGO_HOME:-$HOME/.cargo}
10
11
-# Check if people also install RTIM in other locations beside
12
-# ~/.cargo/bin
13
-if [[ "$RTIM_PATH" == $CARGO_HOME/bin/rustup-toolchain-install-master ]]; then
+# Check if RTIM is not installed or installed in other locations not in ~/.cargo/bin
+if [[ "$INSTALLED" == false || "$RTIM_PATH" == $CARGO_HOME/bin/rustup-toolchain-install-master ]]; then
14
cargo +nightly install rustup-toolchain-install-master
15
else
16
VERSION=$(rustup-toolchain-install-master -V | grep -o "[0-9.]*")
0 commit comments