File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ if [[ "${command}" == "release" ]]; then
19
19
fi
20
20
21
21
if [[ " ${command} " == " rustup" ]]; then
22
- if [[ " $# " -ne 2 ]]; then
22
+ if [[ " $# " -lt 2 ]] || [[ " $# " -gt 3 ]]; then
23
23
echo " Usage: $0 rustup <stable|dev> [commit]"
24
24
exit 1
25
25
fi
@@ -48,5 +48,11 @@ if [[ "$(uname)" == "Linux" ]]; then
48
48
cargo build --release
49
49
fi
50
50
51
+ # If the PROMOTE_RELEASE_RUSTUP_OVERRIDE_VERSION environment variable is set,
52
+ # forward it to the Docker environment.
53
+ if [[ " $PROMOTE_RELEASE_RUSTUP_OVERRIDE_VERSION " != " " ]]; then
54
+ docker compose exec -T local " PROMOTE_RELEASE_RUSTUP_OVERRIDE_VERSION=${PROMOTE_RELEASE_RUSTUP_OVERRIDE_VERSION} /src/local/${command} .sh" " ${channel} " " ${override_commit} "
55
+ fi
56
+
51
57
# Run the command inside the docker environment.
52
58
docker compose exec -T local " /src/local/${command} .sh" " ${channel} " " ${override_commit} "
You can’t perform that action at this time.
0 commit comments