diff options
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/install.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ci/install.sh b/ci/install.sh new file mode 100755 index 0000000..409ff81 --- /dev/null +++ b/ci/install.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +function aptget_update { + apt-get update + if [ "$?" != 0 ]; then + sleep 1s + apt-get update + if [ "$?" != 0 ]; then + sleep 1s + apt-get update + fi + fi +} + +function aptget_install { + apt-get -y -qq install $* + if [ "$?" != 0 ]; then + sleep 1s + apt-get -y -qq install $* + if [ "$?" != 0 ]; then + sleep 2s + apt-get -y -qq install $* + fi + fi +} + +aptget_update +aptget_install $* |