]> git.lizzy.rs Git - rust.git/blobdiff - src/ci/shared.sh
Auto merge of #86105 - bjorn3:link_info_refactor, r=petrochenkov
[rust.git] / src / ci / shared.sh
index 332a949a4dc51bda7202d33aa63337d8902c4212..1f218bc834608325883ff198edbff566df015aad 100644 (file)
@@ -7,7 +7,7 @@
 
 export MIRRORS_BASE="https://ci-mirrors.rust-lang.org/rustc"
 
-# See http://unix.stackexchange.com/questions/82598
+# See https://unix.stackexchange.com/questions/82598
 # Duplicated in docker/dist-various-2/shared.sh
 function retry {
   echo "Attempting with retry:" "$@"
@@ -141,3 +141,11 @@ function ciCommandSetEnv {
         exit 1
     fi
 }
+
+function releaseChannel {
+    if [[ -z "${RUST_CI_OVERRIDE_RELEASE_CHANNEL+x}" ]]; then
+        cat "${ci_dir}/channel"
+    else
+        echo $RUST_CI_OVERRIDE_RELEASE_CHANNEL
+    fi
+}