File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 6
6
cd " $( dirname " $0 " ) "
7
7
8
8
if [[ " $CI " == true ]] || ! command -v rustup-toolchain-install-master > /dev/null; then
9
- cargo install -Z install-upgrade rustup-toolchain-install-master --bin rustup-toolchain-install-master
9
+ cargo install -Z install-upgrade rustup-toolchain-install-master --bin rustup-toolchain-install-master
10
10
fi
11
11
12
- rustup-toolchain-install-master -f -n master -c rustc-dev
12
+ RUST_COMMIT=$( git ls-remote https://github.com/rust-lang/rust master | awk ' {print $1}' )
13
+
14
+ if rustc +master -Vv 2> /dev/null | grep -q " $RUST_COMMIT " ; then
15
+ echo " info: master toolchain is up-to-date"
16
+ exit 0
17
+ fi
18
+
19
+ rustup-toolchain-install-master -f -n master -c rustc-dev -- " $RUST_COMMIT "
13
20
rustup override set master
You can’t perform that action at this time.
0 commit comments