From a8288fa657f97df422af7d106d66f140d906968e Mon Sep 17 00:00:00 2001 From: Paul Whalen Date: Jul 16 2024 19:31:48 +0000 Subject: F41: fix loop in sync script Signed-off-by: Paul Whalen --- diff --git a/sync-bootc-base-containers.sh b/sync-bootc-base-containers.sh index d5a65d2..da29480 100755 --- a/sync-bootc-base-containers.sh +++ b/sync-bootc-base-containers.sh @@ -144,10 +144,11 @@ find_and_copy_images() { fi # Check that all architectures completed in the build else exit for arch in "${ARCHES[@]}"; do - if [ ! -f "/mnt/koji/compose/iot/Fedora-IoT-${release}-${compdate}/compose/bootc/${arch}/images/${basename}-${release}.${compdate}.ociarchive" ]; then - echo "One of the expected images are missing, exiting." - exit 1 - fi + if [ ! -f "/mnt/koji/compose/iot/Fedora-IoT-${release}-${compdate}/compose/bootc/${arch}/images/${basename}-${release}.${compdate}.ociarchive" ]; then + echo "One of the expected images are missing, exiting." + exit 1 + fi + done work_dir=$(mktemp -d) pushd ${work_dir} &> /dev/null