mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-02-07 00:12:21 +01:00
make aws profile an argument in the scripts
This commit is contained in:
parent
a97b8cca58
commit
36193111e2
@ -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 <version>
|
||||
# Example: download-staged-artifact.sh 0.1.0
|
||||
# Retrieve version from the first argument
|
||||
# Usage: download-staged-artifact.sh <version> <aws-profile>
|
||||
# Example: download-staged-artifact.sh 0.1.0 storage
|
||||
|
||||
VERSION=$1
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "Usage: $0 <version>"
|
||||
AWS_PROFILE=$2
|
||||
if [ -z "$VERSION" || -z "$AWS_PROFILE" ]; then
|
||||
echo "Usage: $0 <version> <aws-profile>"
|
||||
exit
|
||||
fi
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
# Takes a release from our staging bucket and publishes it to the public download bucket.
|
||||
# Usage: publish-from-staging.sh <version>
|
||||
# Example: publish-from-staging.sh 0.1.0
|
||||
# Usage: publish-from-staging.sh <version> <aws-profile>
|
||||
# Example: publish-from-staging.sh 0.1.0 storage
|
||||
|
||||
# Takes the version as an argument
|
||||
VERSION=$1
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "Usage: $0 <version>"
|
||||
AWS_PROFILE=$2
|
||||
if [ -z "$VERSION" || -z "$AWS_PROFILE" ]; then
|
||||
echo "Usage: $0 <version> <aws-profile>"
|
||||
exit
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user