Ensure upload task fails if upload fails
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ cat $AWS_CONFIG_FILE | grep "aws_secret_access_key" | sed "s/aws_secret_access_k
|
||||
|
||||
HEADERS="--add-header=cache-control:max-age=1800"
|
||||
GZIP="--add-header=content-encoding:gzip"
|
||||
CMD="sync $SOURCE_DIR $TARGET_DIR -r -P $HEADERS --exclude=*"
|
||||
CMD="sync $SOURCE_DIR $TARGET_DIR -r -P $HEADERS --stop-on-error --exclude=*"
|
||||
|
||||
echo "Preparing to upload to S3..."
|
||||
s3cmd $CMD -m 'image/png' --include="*.png" || exit 1
|
||||
|
||||
Reference in New Issue
Block a user