]> Creatis software - creaToolsTools.git/commitdiff
#3027 creaToolsTools Bug New Normal - Get distribution (Ubuntu) not working
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Sat, 15 Oct 2016 11:00:13 +0000 (13:00 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Sat, 15 Oct 2016 11:00:13 +0000 (13:00 +0200)
Linux/scripts/LocalFunctions.sh

index b9694a04ad60758178c800bd1268aab87ac80b32..9bf488d08b4d5aab2c68680d66a12ed029a5197f 100644 (file)
@@ -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