File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -38,17 +38,9 @@ S3_BUCKET="fig-io-chat-build-output-${FIGCHAT_GAMMA_ID}-us-east-1"
3838S3_PREFIX=" main/${GIT_HASH} /x86_64-unknown-linux-musl"
3939echo " Downloading qchat.zip from s3://.../${S3_PREFIX} /qchat.zip"
4040
41- # Try download, fall back to latest commit hash if it fails
42- # exit code = 0 means success/true in bash, all others are false
41+ # Try download, if hash is invalid we fail.
4342AWS_ACCESS_KEY_ID=" $QCHAT_ACCESSKEY " AWS_SECRET_ACCESS_KEY=" $Q_SECRET_ACCESS_KEY " AWS_SESSION_TOKEN=" $Q_SESSION_TOKEN " \
44- aws s3 cp s3://${S3_BUCKET} /${S3_PREFIX} /qchat.zip ./qchat.zip --region us-east-1 || {
45- echo " Falling back to latest build"
46- S3_PREFIX=" main/latest/x86_64-unknown-linux-musl"
47- AWS_ACCESS_KEY_ID=" $QCHAT_ACCESSKEY " AWS_SECRET_ACCESS_KEY=" $Q_SECRET_ACCESS_KEY " AWS_SESSION_TOKEN=" $Q_SESSION_TOKEN " \
48- aws s3 cp s3://${S3_BUCKET} /${S3_PREFIX} /qchat.zip ./qchat.zip --region us-east-1
49- }
50-
51-
43+ aws s3 cp s3://${S3_BUCKET} /${S3_PREFIX} /qchat.zip ./qchat.zip --region us-east-1
5244
5345# Handle the zip file, copy the qchat executable to /usr/local/bin + symlink from old code
5446echo " Extracting qchat.zip..."
6557
6658echo " Cleaning q zip"
6759rm -f qchat.zip
68- rm -rf qchat
60+ rm -rf qchat
You can’t perform that action at this time.
0 commit comments