Skip to content

Commit

Permalink
Merge branch 'aws-containers:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
InbarRose authored Mar 31, 2022
2 parents 73885b8 + 0d88ce2 commit 870f71c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions check-ecs-exec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ fi
printf "${COLOR_DEFAULT} AWS CLI | ${COLOR_GREEN}OK ${COLOR_DEFAULT}($(which "${AWS_CLI_BIN}"))\n"

# Find AWS region
REGION=$(${AWS_CLI_BIN} configure get region || echo "")
REGION=$(${AWS_CLI_BIN} configure get region | sed -e 's/\r//g' || echo "")
export AWS_REGION=${AWS_REGION:-$REGION}
# Check region configuration in "source_profile" if the user uses MFA configurations
source_profile=$(${AWS_CLI_BIN} configure get source_profile || echo "")
Expand Down Expand Up @@ -209,7 +209,7 @@ Please update the AWS CLI and try again?\n\
For v1: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv1.html${COLOR_DEFAULT}\n"
exit 1
fi
awsCliVersion=$(${AWS_CLI_BIN} --version 2>&1)
awsCliVersion=$(${AWS_CLI_BIN} --version 2>&1 | sed -e 's/\r//g')
printf "${COLOR_DEFAULT} AWS CLI Version | ${COLOR_GREEN}OK ${COLOR_DEFAULT}(${awsCliVersion})\n"

# Check whether the Session Manager plugin exists
Expand Down

0 comments on commit 870f71c

Please sign in to comment.