Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit b1b3836

Browse files
committed
fix rustup-toolchain without arguments
1 parent 34d4928 commit b1b3836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rustup-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ else
3030
NEW_COMMIT="$1"
3131
fi
3232
echo "$NEW_COMMIT" > rust-version
33-
shift
33+
shift || true # don't fail if shifting fails
3434

3535
# Check if we already are at that commit.
3636
CUR_COMMIT=$(rustc +miri --version -v 2>/dev/null | egrep "^commit-hash: " | cut -d " " -f 2)

0 commit comments

Comments
 (0)