Skip to content

Commit ada0585

Browse files
author
Thean Lim
committed
fix: handle unbound variable for stable parameter in verify_public_ecr
1 parent d7fe01c commit ada0585

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/publish.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ verify_ecr_image_scan() {
765765
}
766766

767767
verify_dockerhub() {
768-
stable=${1}
768+
stable=${1:-}
769769
docker_hub_login
770770

771771
# Verify the image with stable tag
@@ -808,7 +808,7 @@ verify_dockerhub() {
808808
}
809809

810810
verify_public_ecr() {
811-
stable=${1}
811+
stable=${1:-}
812812
sleep 60
813813
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/aws-observability || echo "0"
814814

0 commit comments

Comments
 (0)