X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Linux%2Fscripts%2FLocalFunctions.sh;fp=Linux%2Fscripts%2FLocalFunctions.sh;h=084c2a19c4dc790a5280f2023c8dd2aff79722a3;hb=fc0a4948bf7e9b88a1568e1728274a41ec12f419;hp=a09a466cd52d83d017873e227651fcc1d1181877;hpb=d3fa23cdd313b5209461d6011a4aeb306350aff8;p=creaToolsTools.git diff --git a/Linux/scripts/LocalFunctions.sh b/Linux/scripts/LocalFunctions.sh index a09a466..084c2a1 100644 --- a/Linux/scripts/LocalFunctions.sh +++ b/Linux/scripts/LocalFunctions.sh @@ -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