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