diff --git a/scripts/artifacts/download-staged-artifact.sh b/scripts/artifacts/download-staged-artifact.sh index 6ae391e5e..0dfe73e28 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 6f31fac81..f3637f580 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