From 2eba50427da7935477e08784c2ba7ed067d1ef01 Mon Sep 17 00:00:00 2001 From: davila Date: Tue, 1 Oct 2024 17:48:43 +0200 Subject: [PATCH] Clean code --- Linux/scripts/CreaTools-GenerateBinTGZ.sh | 3 +++ Linux/scripts/Install-Creatools-Bin.sh-downloadTool | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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="" -- 2.47.1