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
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue