Skip to content

Commit dadf3d9

Browse files
committed
Redirect stderr to stdout to get AWS CLI v1 version number
refs #4
1 parent 01e421c commit dadf3d9

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)