From bbde443f6057cc8075276ecda0561332000ba9fa Mon Sep 17 00:00:00 2001 From: JustFiesta Date: Fri, 17 May 2024 12:36:24 +0200 Subject: [PATCH] Fixup condition for docker login variable --- send_image_to_aws.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/send_image_to_aws.sh b/send_image_to_aws.sh index 1c01b01a3..91c287e5b 100644 --- a/send_image_to_aws.sh +++ b/send_image_to_aws.sh @@ -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."