Skip to content

Commit

Permalink
Merge pull request getlantern#2936 from getlantern/issue2929-xiam
Browse files Browse the repository at this point in the history
Chaining s3cmd cp and setacl with &&.
  • Loading branch information
myleshorton committed Aug 13, 2015
2 parents e3ba012 + a5ca166 commit 4885a34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ release-qa: require-version require-s3cmd
SUFFIX=$$(echo "$$NAME" | sed s/$$BASE_NAME//g) && \
VERSIONED=lantern-installer-$$VERSION$$SUFFIX && \
echo "Copying $$VERSIONED" && \
$(S3CMD) cp s3://$(S3_BUCKET)/$$NAME s3://$(S3_BUCKET)/$$VERSIONED; \
$(S3CMD) cp s3://$(S3_BUCKET)/$$NAME s3://$(S3_BUCKET)/$$VERSIONED && \
$(S3CMD) setacl s3://$(S3_BUCKET)/$$VERSIONED --acl-public; \
done && \
for NAME in $$(ls -1 update_darwin_amd64.bz2 update_linux_386.bz2 update_linux_amd64.bz2 update_windows_386.bz2); do \
Expand All @@ -392,8 +392,8 @@ release-beta: require-s3cmd
for URL in $$($(S3CMD) ls s3://$(S3_BUCKET)/ | grep $$BASE_NAME | awk '{print $$4}'); do \
NAME=$$(basename $$URL) && \
BETA=$$(echo $$NAME | sed s/"$$BASE_NAME"/$$BETA_BASE_NAME/) && \
$(S3CMD) cp s3://$(S3_BUCKET)/$$NAME s3://$(S3_BUCKET)/$$BETA; \
$(S3CMD) setacl s3://$(S3_BUCKET)/$$BETA --acl-public; \
$(S3CMD) cp s3://$(S3_BUCKET)/$$NAME s3://$(S3_BUCKET)/$$BETA && \
$(S3CMD) setacl s3://$(S3_BUCKET)/$$BETA --acl-public && \
$(S3CMD) get --force s3://$(S3_BUCKET)/$$NAME $(LANTERN_BINARIES_PATH)/$$BETA; \
done && \
cd $(LANTERN_BINARIES_PATH) && \
Expand Down

0 comments on commit 4885a34

Please sign in to comment.