2019-02-02 19:54:18 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# Set up the appropriate rustc toolchain
|
|
|
|
|
2019-10-11 08:53:55 +00:00
|
|
|
cd "$(dirname "$0")" || exit
|
2019-06-03 02:23:15 +00:00
|
|
|
|
|
|
|
if ! command -v rustup-toolchain-install-master > /dev/null; then
|
2019-10-12 03:18:31 +00:00
|
|
|
cargo install \
|
|
|
|
--git https://github.com/kennytm/rustup-toolchain-install-master \
|
|
|
|
--bin rustup-toolchain-install-master \
|
|
|
|
--debug
|
2019-06-03 02:23:15 +00:00
|
|
|
fi
|
2019-02-02 19:54:18 +00:00
|
|
|
|
2019-10-11 08:53:55 +00:00
|
|
|
rustup-toolchain-install-master -f -n master -c rustc-dev
|
2019-02-02 19:54:18 +00:00
|
|
|
rustup override set master
|