From 1537e05df74bdb5efec129685995b1978c5a49b7 Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Sun, 1 Jan 2023 22:32:21 +0500 Subject: [PATCH] Try to make image checking be non-fatal if image already exists. --- mirror.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mirror.sh b/mirror.sh index d817775..147a892 100755 --- a/mirror.sh +++ b/mirror.sh @@ -55,7 +55,7 @@ function get_amd64_image() { if docker manifest inspect "${REMOTE_IMAGE}-amd64" &> /dev/null; then echo -e "\t* Layers for amd64 architecture for this image exist." - return 2 + return fi echo -ne "\t* Getting amd64 layers... " @@ -89,7 +89,7 @@ function get_arm64_image() { if docker manifest inspect "${REMOTE_IMAGE}-arm64" &> /dev/null; then echo -e "\t* Layers for arm64 architecture for this image exist." - return 2 + return fi echo -ne "\t* Getting arm64 layers... "