]> git.lizzy.rs Git - rust.git/blobdiff - src/ci/init_repo.sh
Auto merge of #86888 - FabianWolff:issue-86600, r=davidtwco
[rust.git] / src / ci / init_repo.sh
index 060b3079dad5fe214223dfd73b3e6c7001a8bfc6..3c61dcc9d9c7b46a70a56b180355d6af93721707 100755 (executable)
@@ -31,7 +31,7 @@ mkdir "$CACHE_DIR"
 
 # On the beta channel we'll be automatically calculating the prerelease version
 # via the git history, so unshallow our shallow clone from CI.
-if grep -q RUST_RELEASE_CHANNEL=beta src/ci/run.sh; then
+if [ "$(releaseChannel)" = "beta" ]; then
   git fetch origin --unshallow beta master
 fi