]> git.lizzy.rs Git - rust.git/commitdiff
fix rustup-toolchain without arguments
authorRalf Jung <post@ralfj.de>
Mon, 6 Jun 2022 15:44:27 +0000 (11:44 -0400)
committerRalf Jung <post@ralfj.de>
Mon, 6 Jun 2022 15:44:27 +0000 (11:44 -0400)
rustup-toolchain

index 7e5d57349b9dd6298240c71ffbb11442abbce631..ca5508e225a11cf2a2b4d5fa1c90deb2e614f268 100755 (executable)
@@ -30,7 +30,7 @@ else
     NEW_COMMIT="$1"
 fi
 echo "$NEW_COMMIT" > rust-version
-shift
+shift || true # don't fail if shifting fails
 
 # Check if we already are at that commit.
 CUR_COMMIT=$(rustc +miri --version -v 2>/dev/null | egrep "^commit-hash: " | cut -d " " -f 2)