]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_codegen_cranelift/scripts/rustup.sh
Rollup merge of #84709 - joshtriplett:doc-alias-chdir, r=dtolnay
[rust.git] / compiler / rustc_codegen_cranelift / scripts / rustup.sh
index 694945a87c268deaa890288ab55ff7b5bbe1f601..fa7557653d879a161e77afdaddb0dc1822fc374f 100755 (executable)
@@ -8,7 +8,7 @@ case $1 in
 
         echo "=> Installing new nightly"
         rustup toolchain install --profile minimal "nightly-${TOOLCHAIN}" # Sanity check to see if the nightly exists
-        echo "nightly-${TOOLCHAIN}" > rust-toolchain
+        sed -i "s/\"nightly-.*\"/\"nightly-${TOOLCHAIN}\"/" rust-toolchain
         rustup component add rustfmt || true
 
         echo "=> Uninstalling all old nighlies"