fix rustup-toolchain without arguments
This commit is contained in:
parent
34d4928dce
commit
b1b3836172
@ -30,7 +30,7 @@ else
|
|||||||
NEW_COMMIT="$1"
|
NEW_COMMIT="$1"
|
||||||
fi
|
fi
|
||||||
echo "$NEW_COMMIT" > rust-version
|
echo "$NEW_COMMIT" > rust-version
|
||||||
shift
|
shift || true # don't fail if shifting fails
|
||||||
|
|
||||||
# Check if we already are at that commit.
|
# Check if we already are at that commit.
|
||||||
CUR_COMMIT=$(rustc +miri --version -v 2>/dev/null | egrep "^commit-hash: " | cut -d " " -f 2)
|
CUR_COMMIT=$(rustc +miri --version -v 2>/dev/null | egrep "^commit-hash: " | cut -d " " -f 2)
|
||||||
|
Loading…
Reference in New Issue
Block a user