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
 }