From 5d7d8096e8b84aa73852305c23163f74ef080da6 Mon Sep 17 00:00:00 2001 From: Jiri Pechanec Date: Thu, 9 May 2024 08:04:17 +0200 Subject: [PATCH] DBZ-7785 Skip not yet available images --- build-debezium-multiplatform.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build-debezium-multiplatform.sh b/build-debezium-multiplatform.sh index 823b161d..6d0ba41e 100755 --- a/build-debezium-multiplatform.sh +++ b/build-debezium-multiplatform.sh @@ -30,6 +30,15 @@ build_docker_image () { IMAGE_PATH="${IMAGE_PATH}/${IMAGE_TAG}" + if ! [ -d "$IMAGE_PATH" ]; then + echo "" + echo "****************************************************************" + echo "** Directory ${IMAGE_PATH} does not exist, skipping" + echo "****************************************************************" + echo "" + return + fi + PLATFORM_VAR=$(echo "$IMAGE_NAME" | tr '[:lower:]' '[:upper:]' | tr - _)_PLATFORM PLATFORM=${!PLATFORM_VAR} if [ -z "${PLATFORM}" ]; then