From 299b38bd5dda1e37cd894a2907605c58b19b4f64 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 4 Jan 2023 15:59:08 -0300 Subject: Forcefully introduce the standardized CI to client-data --- .tools/retry.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 .tools/retry.sh (limited to '.tools/retry.sh') diff --git a/.tools/retry.sh b/.tools/retry.sh new file mode 100755 index 00000000..aaa50e98 --- /dev/null +++ b/.tools/retry.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +n=0 + +while true; do + $* + if [ "$?" == 0 ]; then + exit 0 + fi + if [[ $n -ge 10 ]]; then + exit -1 + fi + sleep 5s + n=$((n+1)) +done -- cgit v1.2.3-70-g09d2