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