From 3001a2169526ccb1385e9f952a5e2031eb1771e1 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Thu, 19 Dec 2024 16:12:52 +0100 Subject: [PATCH] Fix the new wait for Pypi script (#1161) Related to d6b5d4b0aba2d40cc3eacb1e3dbeb7470fbd2ef8 Signed-off-by: Christian Berendt --- playbooks/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/build.yml b/playbooks/build.yml index edf03d34..d98b864b 100644 --- a/playbooks/build.yml +++ b/playbooks/build.yml @@ -41,7 +41,7 @@ local attempt_num=1 while true; do - AVAILABLE_VERSION=$(curl -s https://pypi.org/pypi/osism/json | jq -r ".releases | keys[]" | grep "^${version}$") + AVAILABLE_VERSION=$(curl -s https://pypi.org/pypi/osism/json | jq -r ".releases | keys[]" | grep "^${version}$" || exit 0) if [[ "$AVAILABLE_VERSION" == "$version" ]]; then break else @@ -55,7 +55,7 @@ } if [[ $version != "latest" ]]; then - wait_for_pypi_version 20 $version + wait_for_pypi_version 20 "${version:1}" fi docker buildx build \