Rustup to rustc 1.42.0-nightly (c2d141df5 2020-01-24)

This commit is contained in:
bjorn3 2020-01-25 12:01:35 +01:00
parent 1db38c0dfc
commit eec023eb85
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
nightly-2020-01-18
nightly-2020-01-25

View File

@ -5,14 +5,14 @@ set -e
case $1 in
"prepare")
# FIXME Automatically detect latest nightly
read -p "Date of nightly to use (aka yesterday GMT): " TOOLCHAIN
read -p "Date of nightly to use: " TOOLCHAIN
echo "=> Installing new nightly"
rustup toolchain install --profile minimal nightly-${TOOLCHAIN} # Sanity check to see if the nightly exists
echo nightly-${TOOLCHAIN} > rust-toolchain
echo "=> Uninstalling all old nighlies"
for nightly in $(rustup toolchain list | grep nightly- | grep -v $TOOLCHAIN); do
for nightly in $(rustup toolchain list | grep nightly | grep -v $TOOLCHAIN | grep -v nightly-x86_64); do
rustup toolchain uninstall $nightly
done