From 2841526207225396a0ff537e726818e208a335c5 Mon Sep 17 00:00:00 2001 From: Ben Rady Date: Wed, 23 Sep 2015 13:27:25 -0500 Subject: [PATCH] Fixed deploy script for us-east-1 default case --- bin/deploy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/deploy b/bin/deploy index 489cd3602..240d0bb58 100755 --- a/bin/deploy +++ b/bin/deploy @@ -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"