Skip to content

Commit 937542d

Browse files
committed
rustup cargo install-upgrade
1 parent cc35165 commit 937542d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

setup-toolchain.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ set -e
55

66
cd "$(dirname "$0")"
77

8-
ERRNO=0
9-
RTIM_PATH=$(command -v rustup-toolchain-install-master) || ERRNO=$?
8+
RTIM_PATH=$(command -v rustup-toolchain-install-master)
109
CARGO_HOME=${CARGO_HOME:-$HOME/.cargo}
1110

1211
# Check if people also install RTIM in other locations beside
1312
# ~/.cargo/bin
14-
if [[ "$ERRNO" -ne 0 ]] || [[ "$RTIM_PATH" == $CARGO_HOME/bin/rustup-toolchain-install-master ]]; then
15-
cargo install -Z install-upgrade rustup-toolchain-install-master
13+
if [[ "$RTIM_PATH" == $CARGO_HOME/bin/rustup-toolchain-install-master ]]; then
14+
cargo +nightly install rustup-toolchain-install-master
1615
else
1716
VERSION=$(rustup-toolchain-install-master -V | grep -o "[0-9.]*")
1817
REMOTE=$(cargo search rustup-toolchain-install-master | grep -o "[0-9.]*")

0 commit comments

Comments
 (0)