rust/setup-toolchain.sh

15 lines
338 B
Bash
Executable File

#!/bin/bash
# Set up the appropriate rustc toolchain
cd "$(dirname "$0")" || exit
if ! command -v rustup-toolchain-install-master > /dev/null; then
cargo install \
rustup-toolchain-install-master \
--bin rustup-toolchain-install-master \
--debug
fi
rustup-toolchain-install-master -f -n master
rustup override set master