]> 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 14:07:20 +0000 (16:07 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Sat, 15 Oct 2016 14:07:20 +0000 (16:07 +0200)
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