summaryrefslogblamecommitdiff
path: root/ci/install.sh
blob: 0dd41b67d9cb597cc4dc2e59658860d837c8f7c0 (plain) (tree)
1
                   


























                                     
#!/usr/bin/env 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 $*