install-deps: fix syntax in condition for libtool

Without external `(` and `)` the condition is evaluated to false
on Debian Jessie.
This commit is contained in:
Boris Nagaev 2016-06-29 01:40:28 +03:00
parent f0d60ac7de
commit 7003fa837b
1 changed files with 2 additions and 2 deletions

View File

@ -16,8 +16,8 @@ if [[ "$OSTYPE" =~ "linux" ]]; then
fi
DIST=`lsb_release -si`
REL=`lsb_release -sr`
if [[ $DIST =~ "Debian" ]] && (( `echo "$REL > 8" | bc -l` )) || \
[[ $DIST =~ "Ubuntu" ]] && (( `echo "$REL > 14.10" | bc -l` )); then
if ( [[ $DIST =~ "Debian" ]] && (( `echo "$REL > 8" | bc -l` )) ) || \
( [[ $DIST =~ "Ubuntu" ]] && (( `echo "$REL > 14.10" | bc -l` )) ); then
apt-get --yes install libtool-bin
fi
# install Lua for build-pkg