2019-02-02 19:54:18 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# Set up the appropriate rustc toolchain
|
|
|
|
|
2019-10-14 17:51:41 +00:00
|
|
|
set -e
|
|
|
|
|
2019-10-18 07:58:26 +00:00
|
|
|
cd "$(dirname "$0")"
|
2019-06-03 02:23:15 +00:00
|
|
|
|
2019-10-18 07:58:26 +00: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 02:23:15 +00:00
|
|
|
fi
|
2019-02-02 19:54:18 +00:00
|
|
|
|
2019-10-14 03:25:05 +00:00
|
|
|
rustup-toolchain-install-master -f -n master
|
2019-02-02 19:54:18 +00:00
|
|
|
rustup override set master
|