Skip to content

Commit bdfcde4

Browse files
pietroalbinitesuji
andauthored
Apply suggestions from lzutao
Co-Authored-By: lzutao <taolzu@gmail.com>
1 parent 0200050 commit bdfcde4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ci/scripts/upload-artifacts.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
1111
upload_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
@@ -24,7 +24,7 @@ fi
2424
cp 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}"
2929
fi
3030

@@ -33,7 +33,7 @@ ls -lah "${upload_dir}"
3333
echo
3434

3535
deploy_dir="rustc-builds"
36-
if [[ "${DEPLOY_ALT-0}" = "1" ]]; then
36+
if [[ "${DEPLOY_ALT-0}" -eq "1" ]]; then
3737
deploy_dir="rustc-builds-alt"
3838
fi
3939
deploy_url="s3://${DEPLOY_BUCKET}/${deploy_dir}/$(ciCommit)"

0 commit comments

Comments
 (0)