about summary refs log tree commit diff
path: root/scripts/rustup.sh
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-03-29 10:45:09 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2021-03-29 10:45:09 +0200
commit07968a001d9e7dfd2417dfb57d3227e395691418 (patch)
tree367afabb3d748473281bbd2548c3de46d9c9c96f /scripts/rustup.sh
parent500bcfcdb3122d68cabdfc2eb9034d88b708e0bc (diff)
downloadrust-07968a001d9e7dfd2417dfb57d3227e395691418.tar.gz
rust-07968a001d9e7dfd2417dfb57d3227e395691418.zip
Merge commit '0969bc6dde001e01e7e1f58c8ccd7750f8a49ae1' into sync_cg_clif-2021-03-29
Diffstat (limited to 'scripts/rustup.sh')
-rwxr-xr-xscripts/rustup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/rustup.sh b/scripts/rustup.sh
index 694945a87c2..fa7557653d8 100755
--- a/scripts/rustup.sh
+++ b/scripts/rustup.sh
@@ -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"