summaryrefslogtreecommitdiff
path: root/.tools/retry.sh
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-07-11 02:24:15 +0300
committerAndrei Karas <akaras@inbox.ru>2017-07-11 04:19:44 +0300
commit8a504aa1ba3f240878171e0877c11f53fd2515e6 (patch)
tree24765c60576883335181aeb04ce2155351d2b152 /.tools/retry.sh
parent406f2e16dc8eb3ab66993b6c02f864707a90beef (diff)
downloadclientdata-8a504aa1ba3f240878171e0877c11f53fd2515e6.tar.gz
clientdata-8a504aa1ba3f240878171e0877c11f53fd2515e6.tar.bz2
clientdata-8a504aa1ba3f240878171e0877c11f53fd2515e6.tar.xz
clientdata-8a504aa1ba3f240878171e0877c11f53fd2515e6.zip
Add ci test with manaplus.
Diffstat (limited to '.tools/retry.sh')
-rwxr-xr-x.tools/retry.sh15
1 files changed, 15 insertions, 0 deletions
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