File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 125
125
printf " ${COLOR_DEFAULT} AWS CLI | ${COLOR_GREEN} OK ${COLOR_DEFAULT} ($( which " ${AWS_CLI_BIN} " ) )\n"
126
126
127
127
# Find AWS region
128
- REGION=$( ${AWS_CLI_BIN} configure get region || echo " " )
128
+ REGION=$( ${AWS_CLI_BIN} configure get region | sed -e ' s/\r//g ' | | echo " " )
129
129
export AWS_REGION=${AWS_REGION:- $REGION }
130
130
# Check region configuration in "source_profile" if the user uses MFA configurations
131
131
source_profile=$( ${AWS_CLI_BIN} configure get source_profile || echo " " )
@@ -209,7 +209,7 @@ Please update the AWS CLI and try again?\n\
209
209
For v1: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv1.html${COLOR_DEFAULT} \n"
210
210
exit 1
211
211
fi
212
- awsCliVersion=$( ${AWS_CLI_BIN} --version 2>&1 )
212
+ awsCliVersion=$( ${AWS_CLI_BIN} --version 2>&1 | sed -e ' s/\r//g ' )
213
213
printf " ${COLOR_DEFAULT} AWS CLI Version | ${COLOR_GREEN} OK ${COLOR_DEFAULT} (${awsCliVersion} )\n"
214
214
215
215
# Check whether the Session Manager plugin exists
You can’t perform that action at this time.
0 commit comments