diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-07-11 02:24:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-07-11 04:19:44 +0300 |
commit | 8a504aa1ba3f240878171e0877c11f53fd2515e6 (patch) | |
tree | 24765c60576883335181aeb04ce2155351d2b152 /.tools/retry.sh | |
parent | 406f2e16dc8eb3ab66993b6c02f864707a90beef (diff) | |
download | clientdata-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.sh | 15 |
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 |