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 66cd " $( dirname " $0 " ) "
77
88if [[ " $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
1010fi
1111
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 "
1320rustup override set master
You can’t perform that action at this time.
0 commit comments