Skip to content

Commit

Permalink
Merge pull request #2226 from transcom/cg_change_aws_path
Browse files Browse the repository at this point in the history
Change the path for 'aws' binary
  • Loading branch information
Chris Gilmer committed Jun 4, 2019
2 parents da8c563 + 45b3f64 commit 00905e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions scripts/download-secure-migration
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ fi
readonly production_migration_file="$1"

# Ensure our `aws` command is the one infra has wrapped with aws-vault
command -v "$aws_command" 2> /dev/null | grep "ppp-infra/bin/aws" &> /dev/null || \
( echo "error: aws command not pointing to 'ppp-infra/bin/aws"
command -v "$aws_command" 2> /dev/null | grep "ppp-infra/scripts/aws" &> /dev/null || \
( echo "error: aws command not pointing to 'ppp-infra/scripts/aws"
echo "see https://github.com/transcom/ppp-infra/blob/master/transcom-ppp/README.md#using-aws-vault"
exit 1
)
Expand Down
4 changes: 2 additions & 2 deletions scripts/run-prod-migrations
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ function run() {
#

# Ensure our `aws` command is the one infra has wrapped with aws-vault
command -v aws 2> /dev/null | grep "ppp-infra/bin/aws" &> /dev/null || \
( echo "error: aws command not pointing to 'ppp-infra/bin/aws"
command -v aws 2> /dev/null | grep "ppp-infra/scripts/aws" &> /dev/null || \
( echo "error: aws command not pointing to 'ppp-infra/scripts/aws"
echo "see https://github.com/transcom/ppp-infra/blob/master/transcom-ppp/README.md#using-aws-vault"
exit 1
)
Expand Down
4 changes: 2 additions & 2 deletions scripts/upload-secure-migration
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ fi
readonly production_migration_file="$1"

# Ensure our `aws` command is the one infra has wrapped with aws-vault
command -v "$aws_command" 2> /dev/null | grep "ppp-infra/bin/aws" &> /dev/null || \
( echo "error: aws command not pointing to 'ppp-infra/bin/aws"
command -v "$aws_command" 2> /dev/null | grep "ppp-infra/scripts/aws" &> /dev/null || \
( echo "error: aws command not pointing to 'ppp-infra/scripts/aws"
echo "see https://github.com/transcom/ppp-infra/blob/master/transcom-ppp/README.md#using-aws-vault"
exit 1
)
Expand Down

0 comments on commit 00905e3

Please sign in to comment.