projects
/
platform
/
core
/
csapi
/
tizenfx.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
added API Level
[platform/core/csapi/tizenfx.git]
/
tools
/
retry.sh
1
#!/bin/bash
2
3
retry_count=3
4
cmd="${@}"
5
6
n=0
7
until [ $n -ge $retry_count ]; do
8
if [ $n -gt 0 ]; then
9
echo "(Failed! Retry $[$n+1]/$retry_count) $cmd"
10
sleep 2
11
fi
12
$cmd
13
RET=$?
14
if [ $RET -eq 0 ]; then
15
break
16
else
17
n=$[$n+1]
18
fi
19
done
20
21
exit $RET