From 8ad1ad65387e74837238ff222bbf6bdd1f2f07b7 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Sat, 15 Oct 2016 13:00:13 +0200 Subject: [PATCH] #3027 creaToolsTools Bug New Normal - Get distribution (Ubuntu) not working --- Linux/scripts/LocalFunctions.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Linux/scripts/LocalFunctions.sh b/Linux/scripts/LocalFunctions.sh index b9694a0..9bf488d 100644 --- a/Linux/scripts/LocalFunctions.sh +++ b/Linux/scripts/LocalFunctions.sh @@ -62,8 +62,12 @@ function checkDistrib { function getDistrib { local OS=`uname` - if [ "$OS" == Darwin ] ; then OS=MacOS; - elif [ "$OS" == Linux ] ; then OS=`awk 'NR==1{print $1}' /etc/system-release` + if [ "$OS" == Darwin ] ; then OS=MacOS; + +##EED2016-10-15 +## elif [ "$OS" == Linux ] ; then OS=`awk 'NR==1{print $1}' /etc/system-release` + elif [ "$OS" == Linux ] ; then OS=$(lsb_release -i | awk '{print $3}') + else OS="" fi # checkDistrib $OS -- 2.44.0