From 4ae006a7962f8ddeebe429bbe3592e63bea18359 Mon Sep 17 00:00:00 2001 From: Arnie Date: Wed, 11 Apr 2018 06:23:07 +0200 Subject: [PATCH] Fix sync and move functions --- aws-cli/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aws-cli/run.sh b/aws-cli/run.sh index 902fc9f..ac94262 100755 --- a/aws-cli/run.sh +++ b/aws-cli/run.sh @@ -230,7 +230,7 @@ move() { aws s3 mv "s3://${source_dir}" "s3://${target_dir}" ${args} --recursive --acl "${ACL}" --expires "${EXPIRES}" --cache-control "max-age=${CACHE_MAX_AGE}" --metadata-directive REPLACE } -move() { +sync() { local source_dir="$1" shift local target_dir="$1" @@ -250,7 +250,7 @@ move() { --env AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} \ --env AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION} \ ${SERVICE_NAME} \ - aws s3 sync "s3://${source_dir}" "s3://${target_dir}" ${args} --delete --recursive --acl "${ACL}" --expires "${EXPIRES}" --cache-control "max-age=${CACHE_MAX_AGE}" --metadata-directive REPLACE + aws s3 sync "s3://${source_dir}" "s3://${target_dir}" ${args} --delete --metadata-directive COPY }