Skip to content

Commit

Permalink
Avoid undefined error for login_args
Browse files Browse the repository at this point in the history
  • Loading branch information
lox committed Jul 13, 2017
1 parent 06e3f22 commit 33dd188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/pre-command
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ if [[ "${BUILDKITE_PLUGIN_ECR_LOGIN:-}" =~ ^(true|1)$ ]] ; then
fi

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

eval "$ecr_login"
fi

0 comments on commit 33dd188

Please sign in to comment.