]> Creatis software - creaToolsTools.git/blobdiff - Linux/scripts/Install-Creatools-Bin.sh
#3027 creaToolsTools Bug New Normal -- Get distribution (Ubuntu) not working
[creaToolsTools.git] / Linux / scripts / Install-Creatools-Bin.sh
index 6482e11676a91e79b69873b3e28ee5568580edbe..f50fe366b9c231de585b55ad947c26729b5d264d 100755 (executable)
@@ -28,7 +28,10 @@ function getDistrib {
     local OS=`uname`
 
       if [ "$OS" == Darwin ] ; then OS=MacOS;
-    elif [ "$OS" == Linux  ] ; then OS=`awk 'NR==1{print $1}' /etc/system-release`
+##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