Skip to content

Commit

Permalink
variable syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Brooks Newberry <[email protected]>
  • Loading branch information
brooksn committed Dec 11, 2024
1 parent 6f7f1bc commit e83d6a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actions/publish-image/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -209,16 +209,16 @@ runs:
retry_delay=5
i=0
while [ $i -lt $max_retries ]; do
while [ "${i}" -lt "${max_retries}" ]; do
if slsactl download provenance --format=slsav1 "${IMG_NAME}" > provenance-slsav1.json; then
break
fi
if [ $i -eq $(( max_retries - 1 )) ]; then
if [ "${i}" -eq "$(( max_retries - 1 ))" ]; then
echo "ERROR: Failed to generate slsav1 provenance. Check whether the image is present in the Prime registry."
exit 1
fi
i=$(( i + 1 ))
sleep $retry_delay
sleep "${retry_delay}"
done
cat provenance-slsav1.json
Expand Down

0 comments on commit e83d6a7

Please sign in to comment.