From fc0a4948bf7e9b88a1568e1728274a41ec12f419 Mon Sep 17 00:00:00 2001 From: Davila Date: Thu, 17 Aug 2017 15:36:52 +0200 Subject: [PATCH] #3117 creaToolsTools Bug New Normal - Not compiling Ubuntu 16.4.3 --- Linux/scripts/LocalFunctions.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Linux/scripts/LocalFunctions.sh b/Linux/scripts/LocalFunctions.sh index a09a466..084c2a1 100644 --- a/Linux/scripts/LocalFunctions.sh +++ b/Linux/scripts/LocalFunctions.sh @@ -65,7 +65,11 @@ function getDistrib { if [ "$OS" == Darwin ] ; then OS=MacOS; ##EED2016-10-15 ## elif [ "$OS" == Linux ] ; then OS=$(lsb_release -i | awk '{print $3}') - elif [ "$OS" == Linux ] ; then OS=`awk 'NR==1{print $1}' /etc/system-release` + elif [ "$OS" == Linux ] ; then + OS=`awk 'NR==1{print $1}' /etc/system-release` + if [ "$OS" == "" ] ; then + OS=$(lsb_release -i | awk '{print $3}') + fi else OS="" fi # checkDistrib $OS -- 2.44.0