File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
11
11
upload_dir=" $( mktemp -d) "
12
12
13
13
# Release tarballs produced by a dist builder.
14
- if [[ " ${DEPLOY-0} " = " 1" ]] || [[ " ${DEPLOY_ALT-0} " = " 1" ]]; then
14
+ if [[ " ${DEPLOY-0} " -eq " 1" ]] || [[ " ${DEPLOY_ALT-0} " -eq " 1" ]]; then
15
15
dist_dir=build/dist
16
16
if isLinux; then
17
17
dist_dir=obj/build/dist
24
24
cp cpu-usage.csv " ${upload_dir} /cpu-${CI_JOB_NAME} .csv"
25
25
26
26
# Toolstate data.
27
- if [[ ! -z " ${DEPLOY_TOOLSTATES_JSON+x} " ]]; then
27
+ if [[ -n " ${DEPLOY_TOOLSTATES_JSON+x} " ]]; then
28
28
cp /tmp/toolstates.json " ${upload_dir} /${DEPLOY_TOOLSTATES_JSON} "
29
29
fi
30
30
@@ -33,7 +33,7 @@ ls -lah "${upload_dir}"
33
33
echo
34
34
35
35
deploy_dir=" rustc-builds"
36
- if [[ " ${DEPLOY_ALT-0} " = " 1" ]]; then
36
+ if [[ " ${DEPLOY_ALT-0} " -eq " 1" ]]; then
37
37
deploy_dir=" rustc-builds-alt"
38
38
fi
39
39
deploy_url=" s3://${DEPLOY_BUCKET} /${deploy_dir} /$( ciCommit) "
You can’t perform that action at this time.
0 commit comments