fixed an error where the interactive installation method would be chosen on Travis
This commit is contained in:
parent
b57213f61c
commit
20eb505fd6
1 changed files with 4 additions and 2 deletions
|
@ -1,9 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# detect if building inside a CI system, like Travis
|
# detect if building inside a CI system, like Travis
|
||||||
if [ -z ${IN_CI+x} ]; then
|
if [ -z ${IN_CI+x} ]; then
|
||||||
COMMAND_PREFIX="DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::=\"--force-confdef\" -o Dpkg::Options::=\"--force-confnew\"";
|
echo "choosing the more interactive installation method"
|
||||||
else
|
|
||||||
COMMAND_PREFIX="apt-get -y";
|
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
|
fi
|
||||||
|
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|
Loading…
Reference in a new issue