X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Linux%2Fscripts%2FLocalFunctions.sh;fp=Linux%2Fscripts%2FLocalFunctions.sh;h=90624a24f2901c36625ebf4fe142fc741f9113bf;hb=0718daf4f3ec2a9ee1a8b201352d9bf4b2b132fa;hp=9bf488d08b4d5aab2c68680d66a12ed029a5197f;hpb=fa4fbd3991c17689ef149ac73c69cdd00c0e64a0;p=creaToolsTools.git diff --git a/Linux/scripts/LocalFunctions.sh b/Linux/scripts/LocalFunctions.sh index 9bf488d..90624a2 100644 --- a/Linux/scripts/LocalFunctions.sh +++ b/Linux/scripts/LocalFunctions.sh @@ -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