We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7613ee6 commit c45477bCopy full SHA for c45477b
1 file changed
scripts/sync-large-static-images.sh
@@ -73,7 +73,6 @@ upload_images() {
73
echo "Uploading to: $S3_DEST"
74
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
75
76
- # Capture exit code; show stdout+stderr live via tee to /dev/null trick
77
set +e
78
aws s3 sync --profile "${AWS_PROFILE}" "$SOURCE_DIR" "$S3_DEST" 2>&1
79
EXIT_CODE=$?
@@ -149,8 +148,8 @@ while [[ $# -gt 0 ]]; do
149
148
done
150
151
if [ "${UPLOAD_COMMAND}" == true ] && [ "${DOWNLOAD_COMMAND}" == true ]; then
152
- echo "Uploading and downloading must be done seperately. Exiting.";
153
- exit 0;
+ echo "Uploading and downloading must be done separately. Exiting.";
+ exit 1;
154
elif [ "${UPLOAD_COMMAND}" == true ]; then
155
upload_images "$ALL_BUCKETS";
156
exit $?;
0 commit comments