Skip to content

Commit 33dd188

Browse files
committed
Avoid undefined error for login_args
1 parent 06e3f22 commit 33dd188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hooks/pre-command

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ if [[ "${BUILDKITE_PLUGIN_ECR_LOGIN:-}" =~ ^(true|1)$ ]] ; then
6767
fi
6868

6969
echo "~~~ Authenticating with AWS ECR"
70-
ecr_login=$(aws ecr get-login "${login_args[@]}") || exit $?
70+
ecr_login=$(aws ecr get-login "${login_args[@]:-}") || exit $?
7171

7272
eval "$ecr_login"
7373
fi

0 commit comments

Comments
 (0)