File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 5
5
6
6
cd " $( dirname " $0 " ) "
7
7
8
- ERRNO=0
9
- RTIM_PATH=$( command -v rustup-toolchain-install-master) || ERRNO=$?
8
+ RTIM_PATH=$( command -v rustup-toolchain-install-master)
10
9
CARGO_HOME=${CARGO_HOME:- $HOME / .cargo}
11
10
12
11
# Check if people also install RTIM in other locations beside
13
12
# ~/.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
16
15
else
17
16
VERSION=$( rustup-toolchain-install-master -V | grep -o " [0-9.]*" )
18
17
REMOTE=$( cargo search rustup-toolchain-install-master | grep -o " [0-9.]*" )
You can’t perform that action at this time.
0 commit comments