Correct errors in upload / deploy scripts
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ ENVIRONMENT=""
|
||||
while [[ "$1" != "" ]]; do
|
||||
case "$1" in
|
||||
"--staging") ENVIRONMENT="staging";;
|
||||
"--prod") ENVIRONMENT="prod";;
|
||||
"--prod") ENVIRONMENT="production";;
|
||||
*) die "Please specify environment: --staging or --prod";;
|
||||
esac
|
||||
shift
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
function die {
|
||||
echo $*
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [[ -e "./aws.config" ]]; then
|
||||
export AWS_CONFIG_FILE="./aws.config"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user