From: Eduardo DAVILA Date: Sat, 15 Oct 2016 14:07:20 +0000 (+0200) Subject: #3027 creaToolsTools Bug New Normal -- Get distribution (Ubuntu) not working X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=8b92b274af03229d9774f6bbfabc3824c2f29928;p=creaToolsTools.git #3027 creaToolsTools Bug New Normal -- Get distribution (Ubuntu) not working --- diff --git a/Linux/scripts/Install-Creatools-Bin.sh b/Linux/scripts/Install-Creatools-Bin.sh index 6482e11..f50fe36 100755 --- a/Linux/scripts/Install-Creatools-Bin.sh +++ b/Linux/scripts/Install-Creatools-Bin.sh @@ -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