2019-02-02 20:54:18 +01:00
|
|
|
#!/bin/bash
|
|
|
|
# Set up the appropriate rustc toolchain
|
|
|
|
|
2019-10-14 19:51:41 +02:00
|
|
|
set -e
|
|
|
|
|
2019-10-18 09:58:26 +02:00
|
|
|
cd "$(dirname "$0")"
|
2019-06-03 04:23:15 +02:00
|
|
|
|
2019-10-18 09:58:26 +02:00
|
|
|
if [[ "$CI" == true ]] || ! command -v rustup-toolchain-install-master > /dev/null; then
|
|
|
|
cargo install -Z install-upgrade rustup-toolchain-install-master --bin rustup-toolchain-install-master
|
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
|