File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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"
1111upload_dir=" $( mktemp -d) "
1212
1313# 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
1515 dist_dir=build/dist
1616 if isLinux; then
1717 dist_dir=obj/build/dist
2424cp cpu-usage.csv " ${upload_dir} /cpu-${CI_JOB_NAME} .csv"
2525
2626# Toolstate data.
27- if [[ ! -z " ${DEPLOY_TOOLSTATES_JSON+x} " ]]; then
27+ if [[ -n " ${DEPLOY_TOOLSTATES_JSON+x} " ]]; then
2828 cp /tmp/toolstates.json " ${upload_dir} /${DEPLOY_TOOLSTATES_JSON} "
2929fi
3030
@@ -33,7 +33,7 @@ ls -lah "${upload_dir}"
3333echo
3434
3535deploy_dir=" rustc-builds"
36- if [[ " ${DEPLOY_ALT-0} " = " 1" ]]; then
36+ if [[ " ${DEPLOY_ALT-0} " -eq " 1" ]]; then
3737 deploy_dir=" rustc-builds-alt"
3838fi
3939deploy_url=" s3://${DEPLOY_BUCKET} /${deploy_dir} /$( ciCommit) "
You can’t perform that action at this time.
0 commit comments