fixed an error where the interactive installation method would be chosen on Travis

This commit is contained in:
Cyryl Plotnicki-Chudyk 2015-07-19 10:42:45 +02:00
parent b57213f61c
commit 20eb505fd6

View file

@ -1,9 +1,11 @@
#!/bin/bash
# detect if building inside a CI system, like Travis
if [ -z ${IN_CI+x} ]; then
COMMAND_PREFIX="DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::=\"--force-confdef\" -o Dpkg::Options::=\"--force-confnew\"";
else
echo "choosing the more interactive installation method"
COMMAND_PREFIX="apt-get -y";
else
echo "choosing totally noninteractive installation method"
COMMAND_PREFIX="DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::=\"--force-confdef\" -o Dpkg::Options::=\"--force-confnew\"";
fi
sudo apt-get update