From f8b8118a6162d532d3b6f82f518c3358ecda5fec Mon Sep 17 00:00:00 2001 From: Jeff Lee Date: Sun, 23 Oct 2016 23:34:45 -0700 Subject: [PATCH] bin/upload-docs: add production option Closes #19 --- bin/upload-docs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/upload-docs b/bin/upload-docs index c259acaec0..9cc0b47049 100755 --- a/bin/upload-docs +++ b/bin/upload-docs @@ -1,9 +1,13 @@ #!/usr/bin/env bash -set -euf -o pipefail +set -ef -o pipefail # TODO: when production is viable target, add commandline option to upload to # the production bucket. bucket="s3://chain-staging.chain.com" +if [ "$1" = "prod" ]; +then + bucket="s3://chain.com" +fi # Print output from generate-docs to stdout, but capture last line (the actual # output directory) in a variable.