install-deps: install bc to compare versions

This commit is contained in:
Boris Nagaev 2016-06-29 01:42:19 +03:00
parent 7003fa837b
commit b328e24458
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,8 @@ if [[ "$OSTYPE" =~ "linux" ]]; then
if ! [[ `uname -m` =~ "i686" ]]; then
apt-get --yes install g++-multilib libc6-dev-i386
fi
# install bc to compare Debian releases
apt-get --yes install bc
DIST=`lsb_release -si`
REL=`lsb_release -sr`
if ( [[ $DIST =~ "Debian" ]] && (( `echo "$REL > 8" | bc -l` )) ) || \