Skip to content

Commit 5380906

Browse files
authored
Merge pull request #5 from aws-containers/fix-version-output-location
Redirect stderr to stdout to store properly the AWS CLI v1 version number
2 parents 01e421c + dadf3d9 commit 5380906

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check-ecs-exec.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Please update the AWS CLI and try again?\n\
137137
For v1: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv1.html\n"
138138
exit 1
139139
fi
140-
awsCliVersion=$(${AWS_CLI_BIN} --version)
140+
awsCliVersion=$(${AWS_CLI_BIN} --version 2>&1)
141141
printf "${COLOR_DEFAULT} AWS CLI Version | ${COLOR_GREEN}OK ${COLOR_DEFAULT}(${awsCliVersion})\n"
142142

143143
# Check if the Session Manager plugin exists

0 commit comments

Comments
 (0)