don't ask conf questions if built under CI
This commit is contained in:
parent
dfe70767cf
commit
eb2efe2fee
1 changed files with 9 additions and 1 deletions
|
@ -1,8 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get dist-upgrade -y
|
sudo apt-get dist-upgrade -y
|
||||||
sudo apt-get install -y meld whois zsh tmux vim atop aria2 curl pv pixz gajim tor torsocks nodejs npm terminator gsmartcontrol python-pip mesa-utils mesa-utils-extra aptitude p7zip-full p7zip-rar thunderbird mercurial kdiff3 gnupg2 python3-setuptools aircrack-ng macchanger
|
|
||||||
|
|
||||||
|
# detect if building inside a CI system, like Travis
|
||||||
|
if [ -z ${IN_CI+x} ]; then
|
||||||
|
INSTALL_COMMAND="sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::=\"--force-confdef\" -o Dpkg::Options::=\"--force-confnew\" install";
|
||||||
|
else
|
||||||
|
INSTALL_COMMAND="sudo apt-get install -y";
|
||||||
|
fi
|
||||||
|
|
||||||
|
$INSTALL_COMMAND="$INSTALL_COMMAND meld whois zsh tmux vim atop aria2 curl pv pixz gajim tor torsocks nodejs npm terminator gsmartcontrol python-pip mesa-utils mesa-utils-extra aptitude p7zip-full p7zip-rar thunderbird mercurial kdiff3 gnupg2 python3-setuptools aircrack-ng macchanger"
|
||||||
|
eval ${INSTALL_COMMAND}
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
DIR="$DIR/../"
|
DIR="$DIR/../"
|
||||||
DIR="$DIR" $DIR/common/configure_fresh_system
|
DIR="$DIR" $DIR/common/configure_fresh_system
|
||||||
|
|
Loading…
Reference in a new issue