]> Creatis software - creaToolsTools.git/commitdiff
#3117 creaToolsTools Bug New Normal - Not compiling Ubuntu 16.4.3
authorDavila <davila@Ubuntu16.4.3>
Thu, 17 Aug 2017 13:36:52 +0000 (15:36 +0200)
committerDavila <davila@Ubuntu16.4.3>
Thu, 17 Aug 2017 13:36:52 +0000 (15:36 +0200)
Linux/scripts/LocalFunctions.sh

index a09a466cd52d83d017873e227651fcc1d1181877..084c2a19c4dc790a5280f2023c8dd2aff79722a3 100644 (file)
@@ -65,7 +65,11 @@ function getDistrib {
        if [ "$OS" == Darwin ] ; then OS=MacOS;
 ##EED2016-10-15    
 ##    elif [ "$OS" == Linux  ] ; then OS=$(lsb_release -i | awk '{print $3}')
-       elif [ "$OS" == Linux  ] ; then OS=`awk 'NR==1{print $1}' /etc/system-release`
+       elif [ "$OS" == Linux  ] ; then 
+               OS=`awk 'NR==1{print $1}' /etc/system-release`
+               if [ "$OS" == "" ] ; then 
+                       OS=$(lsb_release -i | awk '{print $3}')
+               fi
     else OS=""
     fi
 # checkDistrib $OS