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.
1 parent b0ec33f commit 3fb497cCopy full SHA for 3fb497c
setup-toolchain.sh
@@ -1,9 +1,12 @@
1
#!/bin/bash
2
# Set up the appropriate rustc toolchain
3
4
-cd $(dirname $0)
+cd "$(dirname "$0")"
5
+
6
+if ! command -v rustup-toolchain-install-master > /dev/null; then
7
+ cargo install rustup-toolchain-install-master --debug
8
+fi
9
-cargo install rustup-toolchain-install-master --debug || echo "rustup-toolchain-install-master already installed"
10
RUSTC_HASH=$(git ls-remote https://github.com/rust-lang/rust.git master | awk '{print $1}')
-rustup-toolchain-install-master -f -n master $RUSTC_HASH
11
+rustup-toolchain-install-master -f -n master "$RUSTC_HASH"
12
rustup override set master
0 commit comments