Skip to content

Commit

Permalink
Fixed deploy script for us-east-1 default case
Browse files Browse the repository at this point in the history
  • Loading branch information
benrady committed Oct 7, 2015
1 parent 640b0b8 commit 2841526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function putS3
local file=$1
date=$(date +"%a, %d %b %Y %T %z")
acl="x-amz-acl:public-read"
if [[ "us-east-1" != "${AWS_REGION}" ]]; then
if [[ -n "${AWS_REGION}" ]] && [[ "us-east-1" != "${AWS_REGION}" ]]; then
endpoint="${bucket}.s3-${AWS_REGION}.amazonaws.com"
else
endpoint="${bucket}.s3.amazonaws.com"
Expand Down

0 comments on commit 2841526

Please sign in to comment.