Skip to content

Commit

Permalink
Fix lint for pull-image
Browse files Browse the repository at this point in the history
  • Loading branch information
DingGGu committed Dec 12, 2023
1 parent 491374f commit edb7b8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions files/pull-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ function retry() {
done
}

if [[ "$img" =~ ^[0-9]{12}.dkr.ecr ]];
then
if [[ "$img" =~ ^[0-9]{12}.dkr.ecr ]]; then
ecr_password=$(retry aws ecr get-login-password --region $region)
if [[ -z ${ecr_password} ]]; then
echo >&2 "Unable to retrieve the ECR password."
Expand Down

0 comments on commit edb7b8a

Please sign in to comment.