mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-06-12 21:37:38 +02:00
Overhaul cache system
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
#!/bin/bash
|
||||
set -xe
|
||||
set -xe -o pipefail
|
||||
|
||||
RETRY_COUNTER=0
|
||||
MAX_RETRY=10
|
||||
CUR_TIMEOUT=120
|
||||
while [[ $RETRY_COUNTER -lt $MAX_RETRY ]]; do
|
||||
timeout $CUR_TIMEOUT "$@" && break || sleep $(shuf -i 5-90 -n 1)
|
||||
(timeout $CUR_TIMEOUT "$@") && break || sleep $(shuf -i 5-90 -n 1)
|
||||
RETRY_COUNTER=$(( $RETRY_COUNTER + 1 ))
|
||||
CUR_TIMEOUT=$(( $CUR_TIMEOUT + 60 ))
|
||||
echo "Retry $RETRY_COUNTER..."
|
||||
|
Reference in New Issue
Block a user