commit | 262e3ad9b0680d40876e4b6141fab919a825d7b9 | [log] [tgz] |
---|---|---|
author | Petr Michalec <epcim@apealive.net> | Fri Oct 06 13:41:58 2017 +0200 |
committer | Petr Michalec <epcim@apealive.net> | Fri Oct 06 13:41:58 2017 +0200 |
tree | a57a2ce696ead754554ec127a92a3d549e460fa9 | |
parent | 9fec8b36164afd089b930c235dae5b6f791f62b1 [diff] |
update retry function Change-Id: Ib4c75da76cb334f933462ce84047ec4e803dfb82
diff --git a/bootstrap.sh b/bootstrap.sh index 31904a4..dfe5cd2 100755 --- a/bootstrap.sh +++ b/bootstrap.sh
@@ -174,8 +174,10 @@ else tries=3 fi + ret=1 for i in $(seq 1 $tries); do - "$@" && return $? || (ret=$?; sleep $i) + "$@" && return $? || ret=$? + sleep $i done return $ret }