From: Eduardo DAVILA Date: Sat, 15 Oct 2016 11:00:13 +0000 (+0200) Subject: #3027 creaToolsTools Bug New Normal - Get distribution (Ubuntu) not working X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=creaToolsTools.git;a=commitdiff_plain;h=8ad1ad65387e74837238ff222bbf6bdd1f2f07b7 #3027 creaToolsTools Bug New Normal - Get distribution (Ubuntu) not working --- 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