aws-containers / amazon-ecs-exec-checker

🚀 Pre-flight checks for ECS Exec
MIT No Attribution
886 stars 141 forks source link

Support cygwin on Windows #48

Closed thelateperseus closed 2 years ago

thelateperseus commented 2 years ago

When running check-ecs-exec.sh in cygwin on Windows, the REGION variable contains a trailing carriage return character. The script terminates with the error message "' doesn't match a supported format." Removing the trailing carriage return character character allows the rest of the script to complete normally.

The displayed AWS CLI Version also has a trailing carriage return character, but this is only a cosmetic issue and doesn't affect the checks performed by the rest of the script.