rust/setup-toolchain.sh

14 lines
354 B
Bash
Raw Normal View History

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