From 36193111e2e5dc893ba9e21c1673b71c88cea4b1 Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Fri, 16 Aug 2024 11:53:43 -0700 Subject: [PATCH] make aws profile an argument in the scripts --- scripts/artifacts/download-staged-artifact.sh | 10 +++++----- scripts/artifacts/publish-from-staging.sh | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/artifacts/download-staged-artifact.sh b/scripts/artifacts/download-staged-artifact.sh index 6ae391e5..0dfe73e2 100755 --- a/scripts/artifacts/download-staged-artifact.sh +++ b/scripts/artifacts/download-staged-artifact.sh @@ -1,13 +1,13 @@ #!/bin/bash # Downloads the artifacts for the specified version from the staging bucket for local testing. -# Usage: download-staged-artifact.sh -# Example: download-staged-artifact.sh 0.1.0 -# Retrieve version from the first argument +# Usage: download-staged-artifact.sh +# Example: download-staged-artifact.sh 0.1.0 storage VERSION=$1 -if [ -z "$VERSION" ]; then - echo "Usage: $0 " +AWS_PROFILE=$2 +if [ -z "$VERSION" || -z "$AWS_PROFILE" ]; then + echo "Usage: $0 " exit fi diff --git a/scripts/artifacts/publish-from-staging.sh b/scripts/artifacts/publish-from-staging.sh index 6f31fac8..f3637f58 100755 --- a/scripts/artifacts/publish-from-staging.sh +++ b/scripts/artifacts/publish-from-staging.sh @@ -1,11 +1,11 @@ # Takes a release from our staging bucket and publishes it to the public download bucket. -# Usage: publish-from-staging.sh -# Example: publish-from-staging.sh 0.1.0 +# Usage: publish-from-staging.sh +# Example: publish-from-staging.sh 0.1.0 storage -# Takes the version as an argument VERSION=$1 -if [ -z "$VERSION" ]; then - echo "Usage: $0 " +AWS_PROFILE=$2 +if [ -z "$VERSION" || -z "$AWS_PROFILE" ]; then + echo "Usage: $0 " exit fi