From 31dbf282cb45466c7b7fc475482f9fc3bc24db24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Fri, 25 Jan 2019 10:40:41 +0000 Subject: [PATCH] Tools: Update install-prereqs-ubuntu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add lsb-core check for lsb_release Signed-off-by: Patrick José Pereira --- Tools/scripts/install-prereqs-ubuntu.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tools/scripts/install-prereqs-ubuntu.sh b/Tools/scripts/install-prereqs-ubuntu.sh index 88606fb142..22612477cf 100755 --- a/Tools/scripts/install-prereqs-ubuntu.sh +++ b/Tools/scripts/install-prereqs-ubuntu.sh @@ -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