Tools: Update install-prereqs-ubuntu

Add lsb-core check for lsb_release

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2019-01-25 10:40:41 +00:00 committed by Tom Pittenger
parent 7f6b7dab2f
commit 31dbf282cb
1 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,9 @@ if $QUIET; then
APT_GET="$APT_GET -qq"
fi
if ! dpkg-query -l "lsb-release"; then
$APT_GET install lsb-release
fi
# possibly grab a newer cmake for older ubuntu releases
read -r UBUNTU_CODENAME <<<$(lsb_release -c -s)
if [ "$UBUNTU_CODENAME" = "precise" ]; then