mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 23:05:49 +00:00
Fixup condition for docker login variable
This commit is contained in:
parent
e5e6889995
commit
bbde443f60
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ fi
|
|||
echo "Logging in to Amazon ECR..."
|
||||
DOCKER_LOGIN_CMD=$(aws ecr get-login-password --region "$REGION")
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
if [ -n "$DOCKER_LOGIN_CMD" ]; then
|
||||
echo "Got credentials from AWS CLI."
|
||||
else
|
||||
echo "Error: Failed to get credentials from AWS CLI."
|
||||
|
|
Loading…
Reference in a new issue