Skip to content

Commit 3001a21

Browse files
authored
Fix the new wait for Pypi script (#1161)
Related to d6b5d4b Signed-off-by: Christian Berendt <[email protected]>
1 parent e237b9e commit 3001a21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

playbooks/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
local attempt_num=1
4242
4343
while true; do
44-
AVAILABLE_VERSION=$(curl -s https://pypi.org/pypi/osism/json | jq -r ".releases | keys[]" | grep "^${version}$")
44+
AVAILABLE_VERSION=$(curl -s https://pypi.org/pypi/osism/json | jq -r ".releases | keys[]" | grep "^${version}$" || exit 0)
4545
if [[ "$AVAILABLE_VERSION" == "$version" ]]; then
4646
break
4747
else
@@ -55,7 +55,7 @@
5555
}
5656
5757
if [[ $version != "latest" ]]; then
58-
wait_for_pypi_version 20 $version
58+
wait_for_pypi_version 20 "${version:1}"
5959
fi
6060
6161
docker buildx build \

0 commit comments

Comments
 (0)