summaryrefslogtreecommitdiff
path: root/.ci/install.sh
blob: ca2637566770f57e054d662f925feec2de26f62c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

if [ "$RUNFROMSHELL" != "" ];
then
    echo "Running from shell. Skipping apt-get install"
    return
fi

echo "apt-get update"
./.ci/retry.sh apt-get update || exit 1
echo "apt-get -y install aptitude"
./.ci/retry.sh apt-get -y install aptitude || exit 1

echo "aptitude update"
./.ci/retry.sh aptitude update || exit 1
echo "aptitude -y install $*"
./.ci/retry.sh aptitude -y install $* || exit 1