]> Creatis software - creaToolsTools.git/commitdiff
Clean code
authordavila <davila@localhost.localdomain>
Tue, 1 Oct 2024 15:48:43 +0000 (17:48 +0200)
committerdavila <davila@localhost.localdomain>
Tue, 1 Oct 2024 15:48:43 +0000 (17:48 +0200)
Linux/scripts/CreaTools-GenerateBinTGZ.sh
Linux/scripts/Install-Creatools-Bin.sh-downloadTool

index de8d6fbcfef0c1a24da840eea0ae306919944e42..6ffdf0e648c5ce4c323f101fa4e9c85639d93633 100644 (file)
@@ -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 
index 2ba8acad7e62f161f2ce186eddf2e3b12f01ab2a..fd63545fe8cbf1583d873d0fb5bba751e0821ca4 100755 (executable)
@@ -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=""