]> Creatis software - creaToolsTools.git/commitdiff
#3044 creaToolsTools Bug New Normal - Fedora 24 ThirdParty library conflict with...
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Thu, 22 Dec 2016 15:28:12 +0000 (16:28 +0100)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Thu, 22 Dec 2016 15:28:12 +0000 (16:28 +0100)
Linux/scripts/LocalFunctions.sh

index 9bf488d08b4d5aab2c68680d66a12ed029a5197f..90624a24f2901c36625ebf4fe142fc741f9113bf 100644 (file)
@@ -63,11 +63,9 @@ function getDistrib {
     local OS=`uname`
 
        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}')
-
+##    elif [ "$OS" == Linux  ] ; then OS=$(lsb_release -i | awk '{print $3}')
+       elif [ "$OS" == Linux  ] ; then OS=`awk 'NR==1{print $1}' /etc/system-release`
     else OS=""
     fi
 # checkDistrib $OS