From 531aa52146dec8c64b2e22dbcb1e137879799c08 Mon Sep 17 00:00:00 2001 From: yage Date: Thu, 19 Oct 2023 14:44:01 -0600 Subject: [PATCH] v3.6.4 ===================================================================== --- Changes ------------------------------ - Introduced lazy environment variable checking on ECR_LOGIN --- zsh/lib/cloud/aws/ecr.module.zsh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/zsh/lib/cloud/aws/ecr.module.zsh b/zsh/lib/cloud/aws/ecr.module.zsh index 0d3b72c..6cb4f40 100644 --- a/zsh/lib/cloud/aws/ecr.module.zsh +++ b/zsh/lib/cloud/aws/ecr.module.zsh @@ -4,16 +4,15 @@ DEPENDENCIES+=( docker ) -REQUIRED_ENV+=( - AWS_ACCOUNT - AWS_REGION -) +REQUIRED_ENV+=() use cloud/aws/cli ##################################################################### ECR_LOGIN() { + REQUIRED_ENV=(AWS_REGION AWS_ACCOUNT) CHECK_ENVIRONMENT || return 1 + STATUS "performing AWS ECR docker login" AWS ecr get-login-password \ | docker login \