From 51d3c2b42b4023a4b301df48bc999ce80eab5292 Mon Sep 17 00:00:00 2001 From: Shiming Zhang Date: Sat, 22 Jun 2024 23:34:52 +0800 Subject: [PATCH] Fix correct image --- hack/correct-image.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/correct-image.sh b/hack/correct-image.sh index 5d85a91..75d1bfd 100755 --- a/hack/correct-image.sh +++ b/hack/correct-image.sh @@ -10,10 +10,10 @@ function guess_image() { return fi - if [[ "${image}" == *"registry.docker.com/r"* ]]; then + if [[ "${image}" == *"registry.hub.docker.com/r/"* ]]; then image="docker.io/${image##*registry.hub.docker.com\/r\/}" fi - if [[ "${image}" == *"hub.docker.com/r"* ]]; then + if [[ "${image}" == *"hub.docker.com/r/"* ]]; then image="docker.io/${image##*hub.docker.com\/r\/}" fi if [[ "${image%%/*}" != *"."* ]] || [[ "${image}" != *"/"* ]]; then