summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/ci/scripts/init.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/ci/scripts/init.sh b/tools/ci/scripts/init.sh
index 949204de3..b588192da 100755
--- a/tools/ci/scripts/init.sh
+++ b/tools/ci/scripts/init.sh
@@ -22,8 +22,12 @@ function aptget_update {
sleep 1s
apt-get update
if [ "$?" != 0 ]; then
- sleep 1s
+ sleep 2s
apt-get update
+ if [ "$?" != 0 ]; then
+ sleep 5s
+ apt-get update
+ fi
fi
fi
}
@@ -36,6 +40,10 @@ function aptget_install {
apt-get -y -qq install $*
if [ "$?" != 0 ]; then
sleep 2s
+ if [ "$?" != 0 ]; then
+ sleep 5s
+ apt-get -y -qq install $*
+ fi
apt-get -y -qq install $*
fi
fi