summaryrefslogtreecommitdiff
path: root/tools/ci/scripts/init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ci/scripts/init.sh')
-rwxr-xr-xtools/ci/scripts/init.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/tools/ci/scripts/init.sh b/tools/ci/scripts/init.sh
index 64e11f3b0..7f48bb0aa 100755
--- a/tools/ci/scripts/init.sh
+++ b/tools/ci/scripts/init.sh
@@ -67,6 +67,35 @@ function aptget_install {
fi
}
+function gitclone {
+ git clone $*
+ if [ "$?" != 0 ]; then
+ sleep 1s
+ git clone $*
+ if [ "$?" != 0 ]; then
+ sleep 3s
+ git clone $*
+ if [ "$?" != 0 ]; then
+ sleep 5s
+ git clone $*
+ if [ "$?" != 0 ]; then
+ sleep 10s
+ git clone $*
+ if [ "$?" != 0 ]; then
+ sleep 15s
+ git clone $*
+ if [ "$?" != 0 ]; then
+ sleep 20s
+ git clone $*
+ fi
+ fi
+ fi
+ fi
+ fi
+ fi
+ check_error $?
+}
+
function check_error {
if [ "$1" != 0 ]; then
cat $ERRFILE