- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for Max (0.13 sec)
-
common/scripts/kind_provisioner.sh
function log() { echo -e "$(date -u '+%Y-%m-%dT%H:%M:%S.%NZ')\t$*" } function retry() { local n=1 local max=5 local delay=5 while true; do "$@" && break if [[ $n -lt $max ]]; then ((n++)) log "Command failed. Attempt $n/$max:" sleep $delay; else log "The command has failed after $n attempts." >&2 return 2 fi done }
Shell Script - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Mon Apr 08 19:12:55 GMT 2024 - 17.3K bytes - Viewed (1) -
bin/retry.sh
Shell Script - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Jun 11 16:08:08 GMT 2021 - 2K bytes - Viewed (0)