From: davila Date: Tue, 1 Oct 2024 15:48:43 +0000 (+0200) Subject: Clean code X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=2eba50427da7935477e08784c2ba7ed067d1ef01;p=creaToolsTools.git Clean code --- diff --git a/Linux/scripts/CreaTools-GenerateBinTGZ.sh b/Linux/scripts/CreaTools-GenerateBinTGZ.sh index de8d6fb..6ffdf0e 100644 --- a/Linux/scripts/CreaTools-GenerateBinTGZ.sh +++ b/Linux/scripts/CreaTools-GenerateBinTGZ.sh @@ -234,6 +234,9 @@ $(eval $cmd) echo " if [ \`getDistrib\` == Fedora ] ; then ">> $filename_BinVersion echo " VERFINALUSER=Fedora-30 ">> $filename_BinVersion echo " fi ">> $filename_BinVersion + echo " if [ \`getDistrib\` == Ubuntu ] ; then ">> $filename_BinVersion + echo " VERFINALUSER=Fedora-30 ">> $filename_BinVersion + echo " fi ">> $filename_BinVersion echo " if [ \`getDistrib\` == MacOS ] ; then ">> $filename_BinVersion echo " VERFINALUSER=MacOS-10.11.6 ">> $filename_BinVersion echo " fi ">> $filename_BinVersion diff --git a/Linux/scripts/Install-Creatools-Bin.sh-downloadTool b/Linux/scripts/Install-Creatools-Bin.sh-downloadTool index 2ba8aca..fd63545 100755 --- a/Linux/scripts/Install-Creatools-Bin.sh-downloadTool +++ b/Linux/scripts/Install-Creatools-Bin.sh-downloadTool @@ -32,7 +32,7 @@ function getDistrib { ## elif [ "$OS" == Linux ] ; then OS=$(lsb_release -i | awk '{print $3}') elif [ "$OS" == Linux ] ; then OS=`awk 'NR==1{print $1}' /etc/system-release` - if [ "$OS" == "" ] ; then + if [ -z "$OS" ] ; then OS=$(lsb_release -i | awk '{print $3}') fi else OS=""