INNER CODE UNIT · Java
total
spring-cloud/spring-cloud-kubernetes · .github/workflows/composites/scripts/retry-command.sh:54
local total=$(( MAX_RETRIES + 1 ))
while true; do
set +e
"$@"
rc=$?
set -e
if [[ $rc -eq 0 ]]; then
if [[ $attempt -gt 0 ]]; then
echo "=========================================================================="
echo "command succeeded on attempt $(( attempt + 1 )) of ${total}"
echo "=========================================================================="
note_retry "$1" "$(( attempt + 1 ))" "${total}"
fi
return 0
fi